@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Design Variables --- */
:root {
  --primary: #0066C8;
  --primary-rgb: 0, 102, 200;
  --primary-hover: #0050A0;
  --primary-light: #EBF5FF;
  
  --accent: #00D2C4;
  --accent-rgb: 0, 210, 196;
  --accent-hover: #00B3A7;
  --accent-light: #E0FAF8;
  
  --dark-bg: #0F172A;
  --dark-surface: #1E293B;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(0, 102, 200, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(0, 210, 196, 0.25);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* --- Base Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--white);
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 52px; /* offset for fixed header */
}

@media (max-width: 768px) {
  body {
    padding-top: 70px; /* offset for mobile fixed header */
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark-bg);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 40px 0;
}

.section-bg-light {
  background-color: var(--light-bg);
}

.section-bg-dark {
  background-color: var(--dark-bg);
  color: var(--white);
}

.section-bg-dark h2 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header p {
  font-size: 1.1rem;
}

.text-accent {
  color: var(--accent);
}

.text-primary {
  color: var(--primary);
}

/* --- Buttons --- */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.icon-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.icon-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00A3FF);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 102, 200, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 200, 0.4);
}

.btn-secondary {
  background-color: var(--white);
  border-color: rgba(0, 102, 200, 0.3);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #05A8FF);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 210, 196, 0.4);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Badges & Chips --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

/* --- Header / Navigation (LinkedIn-Style) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Left Section: Logo & Search */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 450px;
}

.header-logo-box {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.5px;
  transition: var(--transition-fast);
}

.header-logo-box:hover {
  color: var(--primary-hover);
  transform: scale(1.02);
}

.header-left-guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  background-color: var(--light-bg);
  transition: var(--transition-smooth);
  margin-left: 8px;
}

.header-left-guest-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: scale(1.08);
}

.header-search {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.header-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.header-search input {
  width: 100%;
  height: 34px;
  background-color: #eef3f8;
  border: none;
  border-radius: 4px;
  padding: 0 8px 0 36px;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.header-search input:focus {
  background-color: #ffffff;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Right Section: Navigation */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 52px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.nav-list li a svg {
  margin-bottom: 3px;
  stroke-width: 1.8;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--text-main);
}

.nav-list li a.active {
  border-bottom-color: var(--text-main);
}

.nav-list li a.active svg {
  color: var(--text-main);
}

/* Guest Actions */
.guest-only,
.member-only {
  display: none;
}

.btn-signin {
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 100px !important;
  padding: 6px 16px !important;
  min-width: auto !important;
  height: auto !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  flex-direction: row !important;
}

.btn-signin:hover {
  background-color: var(--primary-light) !important;
}

.btn-join {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-radius: 100px !important;
  padding: 7px 16px !important;
  min-width: auto !important;
  height: auto !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  flex-direction: row !important;
}

.btn-join:hover {
  background-color: var(--primary-hover) !important;
}

/* Me Avatar Pill in Nav */
.nav-me-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 52px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition-fast);
  outline: none;
  border-bottom: 2px solid transparent;
}

.nav-me-btn:hover {
  color: var(--text-main);
}

.nav-me-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
  margin-bottom: 3px;
  background-size: cover;
  background-position: center;
}

.nav-me-label-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* User Dropdown Panel - Redesigned & Premium */
.me-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s,
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.me-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.me-dropdown-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Header Section */
.me-dropdown-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  background-color: #fafbfc;
}

.me-dropdown-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}


.post-avatar-img-duplicate-removed {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.post-avatar-placeholder-duplicate-removed {
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* .post-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  display: block;
}

.post-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.post-meta-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-author-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark-bg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-author-name:hover {
  color: var(--primary);
  text-decoration: underline;
}

.post-author-role {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.post-author-role.student {
  background-color: var(--primary-light);
  color: var(--primary);
}

.post-author-role.school_representative {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}*/

.me-dropdown-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  background-size: cover;
  background-position: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.me-dropdown-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.me-dropdown-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.me-dropdown-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.me-dropdown-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.me-dropdown-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

/* Menu Items Section */
.me-dropdown-menu {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
}

.me-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-align: left;
  cursor: pointer;
}

.me-menu-item:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.me-menu-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: #64748b;
  transition: color 0.15s ease;
}

.me-menu-item:hover .me-menu-icon {
  color: var(--text-main);
}

/* Footer Section */
.me-dropdown-footer {
  border-top: 1px solid var(--border-color);
  padding: 8px;
  background-color: #f8fafc;
}

.me-dropdown-signout {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #ef4444;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.me-dropdown-signout:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

.me-signout-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: #ef4444;
  transition: transform 0.15s ease;
}

.me-dropdown-signout:hover .me-signout-icon {
  transform: translateX(2px);
  color: #dc2626;
}

/* Mobile responsive centering */
@media (max-width: 768px) {
  .me-dropdown {
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -10px) scale(0.96) !important;
    position: fixed !important;
    top: 75px !important;
    width: 290px !important;
  }
  .me-dropdown.active {
    transform: translate(-50%, 0) scale(1) !important;
  }
}


/* Adjust general body top spacing */
body {
  padding-top: 52px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark-bg);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 20px 0 20px 0;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(0, 210, 196, 0.08) 0%, rgba(0, 102, 200, 0.03) 50%, rgba(255, 255, 255, 0) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-content p {
  font-size: 1.15rem;
  margin: 24px 0 40px 0;
  line-height: 1.7;
}

/* Hero Dashboard Mockup */
.hero-mockup {
  position: relative;
}

.mockup-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

/* Micro-Dashboard Elements */
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.mockup-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.mockup-name-school {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.mockup-location {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mockup-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  background-color: var(--accent-light);
  color: var(--accent-hover);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.mockup-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-feed-item {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.02);
  display: flex;
  gap: 12px;
}

.mockup-feed-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mockup-feed-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.mockup-feed-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.mockup-feed-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mockup-feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.mockup-tags {
  display: flex;
  gap: 4px;
}

.mockup-tag {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #E2E8F0;
  color: var(--text-muted);
}

.mockup-action-btn {
  font-size: 0.7rem;
  padding: 4px 10px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Floating Mockup Cards */
.floating-card {
  position: absolute;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.floating-card-1 {
  top: 10%;
  left: -20px;
  animation: float 5s ease-in-out infinite alternate;
}

.floating-card-2 {
  bottom: 8%;
  right: -20px;
  animation: float 7s ease-in-out infinite alternate-reverse;
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.floating-icon.blue {
  background-color: var(--primary-light);
  color: var(--primary);
}

.floating-icon.teal {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.floating-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
}

.floating-text p {
  font-size: 0.65rem;
}

/* Mockup Grid Background decorative */
.mockup-bg-shape {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 102, 200, 0.05) 0%, rgba(0, 210, 196, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 102, 200, 0.2);
  box-shadow: var(--shadow-lg);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Interactive Showcase Section (Unstop Vibe) --- */
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.tab-btn:hover {
  border-color: rgba(0, 102, 200, 0.3);
  color: var(--primary);
  background-color: var(--primary-light);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 102, 200, 0.2);
}

/* Showcase Filter Form */
.showcase-search-bar {
  max-width: 600px;
  margin: 0 auto 40px auto;
  display: flex;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.showcase-search-bar input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.showcase-search-bar button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 200, 0.15);
}

.event-card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
}

.event-card-school-info {
  display: flex;
  flex-direction: column;
}

.event-card-school-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.event-card-school-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.event-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-card-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.event-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-bg);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

.event-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-meta-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.event-card-footer {
  padding: 16px 20px;
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card-registrations {
  display: flex;
  flex-direction: column;
}

.registrations-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.registrations-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Statistics Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- How It Works Section --- */
.steps-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 55px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: dashed rgba(0, 102, 200, 0.15);
  z-index: 1;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.step-card:hover .step-number-box {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 102, 200, 0.3);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* Active line effect animation style */
.step-card.active .step-number-box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* --- CTA Section --- */
.cta-wrapper {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e1b4b 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

.cta-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 210, 196, 0.08) 0%, rgba(0, 102, 200, 0.05) 50%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-content .btn-group {
  justify-content: center;
}

/* --- Footer --- */
footer {
  background-color: #0B0F19;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0 30px 0;
  color: #94A3B8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  color: #64748B;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: var(--transition-smooth);
}

.footer-social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-newsletter h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.85rem;
  flex-grow: 1;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #475569;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* --- Registration Onboarding Modal (Interactive Feature) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--dark-bg);
}

.modal-title h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-title p {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Multi-step form style */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-bg);
}

.form-group input, .form-group select {
  width: 100%;
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* Success State Screen */
.success-screen {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.success-screen.active {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px auto;
  animation: pulse-ring 2s infinite;
}

.success-screen h3 {
  margin-bottom: 8px;
}

/* --- Animations --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 196, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 210, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 196, 0); }
}

/* --- Media Queries (Mobile Responsiveness) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-content .btn-group {
    justify-content: center;
  }
  
  .hero-mockup {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand, .footer-newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  
  header {
    height: 70px;
  }
  
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  
  .nav-links a {
    font-size: 1.25rem;
  }
  
  .nav-msg-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md) !important;
    padding: 10px 20px !important;
    background: rgba(var(--primary-rgb), 0.05);
    width: fit-content;
  }
  
  .nav-msg-text {
    display: inline !important;
    font-size: 1.25rem;
    font-weight: 500;
  }
  
  .nav-actions {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  .mobile-nav-active .mobile-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-nav-active .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-active .mobile-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .steps-container::before {
    display: none;
  }
  
  .floating-card-1 {
    left: 10px;
  }
  
  .floating-card-2 {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .floating-card {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand, .footer-newsletter {
    grid-column: span 1;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
}

/* --- Schools Page Styles --- */
.schools-hero {
  padding: 60px 0 30px 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 102, 200, 0.05) 0%, rgba(0, 210, 196, 0.03) 50%, rgba(255, 255, 255, 0) 100%);
  text-align: center;
}

.schools-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.schools-filter-section {
  padding: 40px 0;
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
}

.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.filter-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-grow: 1;
  max-width: 800px;
}

.filter-input-wrapper {
  flex-grow: 2;
  position: relative;
  min-width: 200px;
}

.filter-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  background-color: var(--white);
  transition: var(--transition-fast);
}

.filter-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.filter-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--text-muted);
  pointer-events: none;
}

.filter-select-wrapper {
  flex-grow: 1;
  min-width: 150px;
}

.filter-select-wrapper select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  background-color: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: var(--transition-fast);
}

.filter-select-wrapper select:focus {
  border-color: var(--primary);
}

.btn-clear-filters {
  padding: 12px 20px;
  font-size: 0.9rem;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-clear-filters:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.schools-count-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.schools-grid-section {
  padding: 60px 0 100px 0;
}

.schools-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* School Card Specific Styling */
.school-card-item {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.school-card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 200, 0.15);
}

.school-card-banner-bg {
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative;
}

.school-card-banner-bg.color-1 { background: linear-gradient(135deg, #0066C8, #00A3FF); }
.school-card-banner-bg.color-2 { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.school-card-banner-bg.color-3 { background: linear-gradient(135deg, #065f46, #0f766e); }
.school-card-banner-bg.color-4 { background: linear-gradient(135deg, #b91c1c, #991b1b); }
.school-card-banner-bg.color-5 { background: linear-gradient(135deg, #7c2d12, #9a3412); }

.school-logo-overlap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background-color: var(--white);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
  position: absolute;
  bottom: -36px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 2;
}

.school-card-content {
  padding: 56px 24px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.school-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 12px;
  line-height: 1.3;
}

.school-card-name a {
  color: inherit;
  transition: var(--transition-fast);
}

.school-card-name a:hover {
  color: var(--primary);
}

.school-card-badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.school-info-meta {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.school-events-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  background-color: var(--primary-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.school-events-badge svg {
  fill: currentColor;
}

/* --- School Profile Page Styles --- */
.profile-banner {
  display: none; /* hide banner and remove gap */
}

.profile-banner.color-1 { background: linear-gradient(135deg, #0066C8, #00A3FF); }
.profile-banner.color-2 { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.profile-banner.color-3 { background: linear-gradient(135deg, #065f46, #0f766e); }
.profile-banner.color-4 { background: linear-gradient(135deg, #b91c1c, #991b1b); }
.profile-banner.color-5 { background: linear-gradient(135deg, #7c2d12, #9a3412); }

.profile-header-wrapper {
  margin-top: 30px; /* reduced gap (≈50% of previous) */
  position: relative;
  z-index: 10;
  margin-bottom: 0;
}

.profile-header-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.profile-meta-group {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-logo-circle {
  width: 110px;
  height: 110px;
  background-color: var(--white);
  border: 5px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: -64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 2;
}

.profile-identity h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-identity-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.profile-actions {
  display: flex;
  gap: 12px;
}

/* Tabs split layout */
.profile-tabs-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-bottom: 100px;
}

.profile-tab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--light-bg);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  height: fit-content;
}

.profile-tab-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-tab-btn:hover {
  background-color: rgba(0, 102, 200, 0.05);
  color: var(--primary);
}

.profile-tab-btn.active {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.profile-tab-panel {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  display: none;
  animation: tabFadeIn 0.4s ease;
}

.profile-tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-tab-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 12px;
}

/* About Tab details styling */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.about-info-card {
  background-color: var(--light-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.about-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.about-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.about-meta-item span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.about-meta-item span:last-child {
  font-weight: 600;
  color: var(--dark-bg);
}

/* Achievements tab style */
.achievements-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 32px;
}

.achievements-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border-color);
}

.achievement-item {
  position: relative;
}

.achievement-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-light);
  border: 2px solid var(--accent);
  color: var(--accent-hover);
  position: absolute;
  left: -32px;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.achievement-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 4px;
}

.achievement-meta {
  font-size: 0.8rem;
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Admissions Tab styling */
.admission-highlight-box {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
  color: var(--text-main);
  font-weight: 500;
}

/* Responsive profiles */
@media (max-width: 992px) {
  .profile-tabs-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-tab-list {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding: 8px;
  }
  
  .profile-tab-btn {
    white-space: nowrap;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .profile-header-box {
    align-items: center;
    text-align: center;
    flex-direction: column;
  }
  
  .profile-meta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .profile-logo-circle {
    margin-top: -80px;
    margin-bottom: 12px;
  }
  
  .profile-identity-meta {
    justify-content: center;
  }
  
  .profile-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .profile-actions button {
    width: 100%;
  }
}

/* --- Events Page Styles --- */
.event-card-grid-item {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.event-card-grid-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 102, 200, 0.15);
}

.event-card-banner-img {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}

.event-card-banner-img.category-sports { background: linear-gradient(135deg, #F59E0B, #D97706); }
.event-card-banner-img.category-science { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.event-card-banner-img.category-debate { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.event-card-banner-img.category-cultural { background: linear-gradient(135deg, #EC4899, #DB2777); }
.event-card-banner-img.category-workshop { background: linear-gradient(135deg, #10B981, #059669); }

.event-card-banner-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--dark-bg);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.event-card-grid-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-card-grid-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 8px;
  line-height: 1.35;
  height: 2.7rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-grid-title a, .event-card-title a {
  color: inherit;
  transition: var(--transition-fast);
}

.event-card-grid-title a:hover, .event-card-title a:hover {
  color: var(--primary);
}

.event-card-host {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-card-meta-item svg {
  fill: currentColor;
}

/* --- Admissions Page Styles --- */
.admission-card-item {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent); /* top accent border */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.admission-card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 210, 196, 0.25);
}

.admission-card-item.status-open { border-top-color: var(--accent); }
.admission-card-item.status-closing { border-top-color: #EF4444; }

.admission-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.admission-card-school {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 8px;
  line-height: 1.3;
}

.admission-card-school a {
  color: inherit;
  transition: var(--transition-fast);
}

.admission-card-school a:hover {
  color: var(--primary);
}

.admission-card-badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admission-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.admission-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.admission-detail-item span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.admission-detail-item span:last-child {
  font-weight: 700;
  color: var(--dark-bg);
}

/* --- School Admin Dashboard Styles --- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--light-bg);
  color: var(--text-main);
}

.dashboard-sidebar {
  width: 260px;
  background-color: #0F172A; /* Slate 900 */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.sidebar-profile-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.sidebar-profile-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
}

.sidebar-profile-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}

.sidebar-profile-role {
  font-size: 0.7rem;
  color: #64748B;
}

.sidebar-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu-btn {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.sidebar-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.sidebar-menu-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.dashboard-main-content {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
}

.dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dashboard-welcome h2 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.dashboard-welcome p {
  font-size: 0.95rem;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.dash-stat-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-stat-info h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dash-stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.dash-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.dash-stat-icon.green {
  background-color: #E6F4EA;
  color: #137333;
}

.dash-stat-icon.teal {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

/* Dashboard views panels */
.dash-view-panel {
  display: none;
  animation: tabFadeIn 0.4s ease;
}

.dash-view-panel.active {
  display: block;
}

.dash-card-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  margin-bottom: 30px;
}

.dash-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Table styles */
.dash-table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.dash-table-grid {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.dash-table-grid th {
  padding: 12px 16px;
  border-bottom: 2px solid var(--light-bg);
  font-weight: 700;
  color: var(--text-muted);
}

.dash-table-grid td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.dash-table-grid tr:last-child td {
  border-bottom: none;
}

.dash-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.dash-status-pill.approved { background-color: #E6F4EA; color: #137333; }
.dash-status-pill.pending { background-color: #FEF7E0; color: #B06000; }

/* Dashboard Form layouts */
.dash-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dash-form-full {
  grid-column: span 2;
}

/* Toast notifications */
.toast-alert {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2000;
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 992px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
  }
  .sidebar-logo {
    margin-bottom: 16px;
  }
  .sidebar-profile-box {
    display: none;
  }
  .sidebar-menu-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }
  .sidebar-menu-btn {
    white-space: nowrap;
    width: auto;
  }
  .sidebar-footer {
    display: none;
  }
  .dash-stats-row {
    grid-template-columns: 1fr;
  }
}



/* --- Event Detail Page Styles --- */
.event-detail-banner {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.event-detail-banner.category-sports { background: linear-gradient(135deg, #F59E0B, #D97706); }
.event-detail-banner.category-science { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.event-detail-banner.category-debate { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.event-detail-banner.category-cultural { background: linear-gradient(135deg, #EC4899, #DB2777); }
.event-detail-banner.category-workshop { background: linear-gradient(135deg, #10B981, #059669); }

.event-detail-emoji-bg {
  position: absolute;
  right: 10%;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.15;
  user-select: none;
}

.event-detail-header-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.event-detail-header-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.event-detail-identity h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-detail-host-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.event-detail-host-link {
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-detail-host-link:hover {
  text-decoration: underline;
}

.event-detail-split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 100px;
}

.event-detail-main-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.event-detail-section {
  margin-bottom: 36px;
}

.event-detail-section:last-child {
  margin-bottom: 0;
}

.event-detail-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
}

.event-detail-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
  color: #334155;
}

.event-detail-section p:last-child {
  margin-bottom: 0;
}

/* Sidebar Timeline alert and card styling */
.event-detail-sidebar-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.deadline-warning-box {
  background-color: #FEF2F2;
  border-left: 4px solid #EF4444;
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #991B1B;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.detail-timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-timeline-item {
  display: flex;
  gap: 16px;
}

.detail-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-timeline-details {
  display: flex;
  flex-direction: column;
}

.detail-timeline-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.detail-timeline-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.detail-meta-horizontal {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 24px;
  font-size: 0.85rem;
}

.detail-meta-horizontal span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-meta-horizontal span:last-child {
  font-weight: 700;
  color: var(--dark-bg);
}

@media (max-width: 992px) {
  .event-detail-split-grid {
    grid-template-columns: 1fr;
  }
  .event-detail-sidebar-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .event-detail-header-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .event-detail-host-row {
    justify-content: center;
  }
  .event-detail-main-card {
    padding: 24px;
  }
}

/* --- School Admin Dashboard CSS --- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--light-bg);
  color: var(--text-main);
  overflow: hidden;
}

.dashboard-sidebar {
  width: 260px;
  background-color: var(--dark-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-logo-section {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-nav {
  list-style: none;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #94A3B8;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.dashboard-nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.03);
}

.dashboard-nav-link.active {
  color: var(--white);
  background: linear-gradient(90deg, rgba(0, 102, 200, 0.25) 0%, rgba(0, 210, 196, 0.1) 100%);
  border-left: 4px solid var(--accent);
  padding-left: 12px; /* adjust for border */
}

.dashboard-nav-link .icon {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.dashboard-sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.dashboard-top-bar {
  background-color: var(--white);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.dashboard-workspace {
  padding: 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
}

.dashboard-tab-panel {
  display: none;
  animation: dashFadeUp 0.4s ease forwards;
}

.dashboard-tab-panel.active {
  display: block;
}

@keyframes dashFadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Stats Grid --- */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.dash-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 200, 0.15);
}

.dash-stat-info h4 {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dash-stat-info .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.dash-stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.dash-stat-icon.blue {
  background-color: var(--primary-light);
  color: var(--primary);
}

.dash-stat-icon.teal {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.dash-stat-icon.orange {
  background-color: #FFF3E0;
  color: #EF6C00;
}

/* --- Dashboard Table --- */
.dash-table-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 32px;
}

.dash-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-card-header h3 {
  font-size: 1.15rem;
  color: var(--dark-bg);
}

.dash-table-wrapper {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.dash-table th {
  background-color: var(--light-bg);
  padding: 14px 24px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.dash-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.dash-table tr:last-child td {
  border-bottom: none;
}

/* --- Status Badges --- */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-status.status-pending {
  background-color: #FEF3C7;
  color: #D97706;
}

.badge-status.status-approved {
  background-color: #D1FAE5;
  color: #059669;
}

.badge-status.status-rejected {
  background-color: #FEE2E2;
  color: #DC2626;
}

/* --- Action Buttons --- */
.btn-action-group {
  display: flex;
  gap: 8px;
}

.btn-action {
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-approve {
  background-color: var(--primary-light);
  color: var(--primary);
}

.btn-approve:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-reject {
  background-color: #F3F4F6;
  color: var(--text-muted);
}

.btn-reject:hover {
  background-color: #E5E7EB;
  color: var(--text-main);
}

.btn-delete-action {
  background-color: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-delete-action:hover {
  background-color: #DC2626;
  color: var(--white);
}

.btn-edit-action {
  background-color: #F1F5F9;
  color: #475569;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-edit-action:hover {
  background-color: #E2E8F0;
  color: var(--dark-bg);
}

/* --- Forms inside Dashboard --- */
.dash-form-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 32px;
}

.dash-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.dash-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-form-group.full-width {
  grid-column: 1 / -1;
}

.dash-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-bg);
}

.dash-form-group input,
.dash-form-group select,
.dash-form-group textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
  background-color: var(--white);
}

.dash-form-group input:focus,
.dash-form-group select:focus,
.dash-form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

/* --- Dashboard Event Grid --- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.dash-item-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-item-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.dash-item-img-placeholder {
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
}

.dash-item-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dash-item-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.dash-item-body h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.dash-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-item-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* --- Collapsible Form Button --- */
.dash-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-alert {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--accent);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-alert.show {
  transform: translateX(0);
}

.toast-alert-success {
  border-left-color: var(--accent);
}

.toast-alert-info {
  border-left-color: var(--primary);
}

.toast-alert-error {
  border-left-color: #EF4444;
}

/* --- Mobile / Responsive Dashboard CSS ---
   NOTE: Full mobile responsive admin UI is handled in admin.css
   These base rules only apply the minimum needed for non-admin pages
   that also use .dashboard-layout (e.g., school admin dashboard.html)
   --- */
@media (max-width: 992px) {
  /* Allow body scroll on admin mobile */
  body {
    overflow-x: hidden !important;
  }
}

@media (max-width: 576px) {
  .dash-form-row {
    grid-template-columns: 1fr;
  }

  .dashboard-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- Banner Upload Dropzone --- */
.upload-dropzone {
  border: 2px dashed rgba(0, 102, 200, 0.25);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  background-color: var(--light-bg);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.upload-icon {
  font-size: 2rem;
}

.upload-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}


/* ============================================================
   AUTH PAGE STYLES — Login / Register
   ============================================================ */

.auth-page-body {
  min-height: 100vh;
  background: var(--light-bg);
  position: relative;
  overflow-x: hidden;
}

/* Background Decorative Shapes */
.auth-bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.auth-bg-shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.15));
  top: -200px;
  right: -100px;
  animation: authFloat1 20s ease-in-out infinite;
}

.auth-bg-shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(var(--accent-rgb), 0.12);
  bottom: -100px;
  left: -80px;
  animation: authFloat2 25s ease-in-out infinite;
}

.auth-bg-shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(var(--primary-rgb), 0.08);
  top: 50%;
  left: 40%;
  animation: authFloat3 18s ease-in-out infinite;
}

@keyframes authFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes authFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.15); }
}

@keyframes authFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -25px) scale(0.9); }
}

/* Page Wrapper — Split Layout */
.auth-page-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Left Brand Panel ── */
.auth-brand-panel {
  flex: 0 0 480px;
  background: linear-gradient(160deg, var(--dark-bg) 0%, #162040 50%, var(--dark-surface) 100%);
  color: var(--text-white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.06);
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  pointer-events: none;
}

.auth-brand-panel h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--white);
}

.auth-brand-panel > p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.auth-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.auth-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.auth-feature-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--white);
}

.auth-feature-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.auth-brand-stats {
  display: flex;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-stat {
  display: flex;
  flex-direction: column;
}

.auth-stat strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.auth-stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Right Form Panel ── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.auth-form-container {
  width: 100%;
  max-width: 480px;
  position: relative;
}

/* ── Tab Toggle ── */
.auth-tab-toggle {
  display: flex;
  position: relative;
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 32px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
  font-family: inherit;
}

.auth-tab-btn.active {
  color: var(--white);
}

.auth-tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* ── Auth Forms ── */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: authFadeIn 0.4s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-form-header {
  margin-bottom: 28px;
}

.auth-form-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 6px;
}

.auth-form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Input with Icon ── */
.input-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.input-icon-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.input-icon-wrapper.input-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-icon-wrapper svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.input-icon-wrapper:focus-within svg {
  color: var(--primary);
}

.input-icon-wrapper input,
.input-icon-wrapper select {
  flex: 1;
  border: none;
  background: none;
  padding: 13px 0;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
}

.input-icon-wrapper input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.input-icon-wrapper select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-wrapper::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-left: auto;
  flex-shrink: 0;
  margin-top: -3px;
}

/* Password Toggle */
.password-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

.password-toggle-btn.active {
  color: var(--primary);
}

/* Password Strength */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 55px;
  text-align: right;
}

/* Auth Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
  display: inline-block;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Auth Form Footer */
.auth-form-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-form-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-form-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

/* Auth error messages */
.auth-form .error-msg {
  display: none;
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 4px;
  font-weight: 500;
}

/* ── Success State ── */
.auth-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  animation: authFadeIn 0.5s ease;
}

.auth-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: authSuccessPulse 1.5s ease-in-out infinite;
}

.auth-success-icon svg {
  color: white;
  width: 40px;
  height: 40px;
}

@keyframes authSuccessPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
}

.auth-success-state h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 8px;
}

.auth-success-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── Auth Toast ── */
.auth-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  max-width: 400px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-toast-icon {
  font-size: 1.2rem;
  color: #EF4444;
  flex-shrink: 0;
}

.auth-toast-msg {
  font-size: 0.85rem;
  color: #991B1B;
  font-weight: 500;
  line-height: 1.4;
}

.auth-toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #991B1B;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.auth-toast-close:hover {
  opacity: 1;
}

/* ============================================================
   NAV AUTH STATE — Logged-in User Pill
   ============================================================ */

.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.nav-user-pill:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logout-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.nav-logout-btn:hover {
  background: #EF4444;
  color: white;
}

/* ============================================================
   AUTH LOADING OVERLAY (for dashboard page guard)
   ============================================================ */

.auth-loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  gap: 16px;
  transition: opacity 0.4s ease;
}

.auth-loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.auth-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(var(--primary-rgb), 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

.auth-loading-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE — Auth Page
   ============================================================ */

@media (max-width: 1024px) {
  .auth-brand-panel {
    flex: 0 0 380px;
    padding: 36px 28px;
  }

  .auth-brand-panel h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .auth-page-wrapper {
    flex-direction: column;
  }

  .auth-brand-panel {
    flex: none;
    padding: 32px 24px;
  }

  .auth-brand-panel h1 {
    font-size: 1.4rem;
  }

  .auth-brand-features {
    display: none;
  }

  .auth-brand-stats {
    padding-top: 20px;
    gap: 20px;
  }

  .auth-stat strong {
    font-size: 1.1rem;
  }

  .auth-form-panel {
    padding: 28px 20px;
  }

  .auth-form-row {
    grid-template-columns: 1fr;
  }

  .auth-form-header h2 {
    font-size: 1.3rem;
  }

  .nav-user-name {
    display: none;
  }

  .nav-user-pill {
    padding: 4px;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .auth-brand-panel {
    padding: 24px 16px;
  }

  .auth-brand-panel h1 {
    font-size: 1.2rem;
  }

  .auth-brand-panel > p {
    font-size: 0.85rem;
  }

  .auth-form-panel {
    padding: 20px 16px;
  }

  .auth-tab-btn {
    font-size: 0.8rem;
    padding: 10px;
  }
}

/* ============================================================
   AUTH TOAST NOTIFICATION SYSTEM
   ============================================================ */

.auth-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100000;
  max-width: 400px;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}

.auth-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.auth-toast-icon {
  font-size: 1.25rem;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-toast-msg {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
  flex-grow: 1;
}

.auth-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.auth-toast-close:hover {
  color: var(--dark-bg);
}

/* --- Role-Based Authentication Badges and Styling --- */
.nav-role-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  vertical-align: middle;
}
.nav-role-badge.super_admin {
  background-color: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.nav-role-badge.school_admin {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.nav-role-badge.visitor {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.input-icon-wrapper select {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background-color: var(--white);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: var(--transition-smooth);
}

.input-icon-wrapper.select-wrapper::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--text-muted);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* --- Avatar Upload Styles --- */
.avatar-upload-area {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--white);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.avatar-upload-area:hover,
.avatar-upload-area.dragover {
  border-color: var(--accent);
  background-color: rgba(99, 102, 241, 0.03);
}

.avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar-upload-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.avatar-upload-area:hover .avatar-upload-label {
  color: var(--accent);
}

.avatar-upload-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Nav User Pill & Avatar --- */
.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin-left: 12px;
  transition: all 0.3s ease;
}

.nav-user-pill:hover {
  background: var(--white);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.nav-logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
  color: #EF4444;
}

/* --- User Type Badges --- */
.nav-role-badge.student {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563EB;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-role-badge.teacher {
  background-color: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.nav-role-badge.parent {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.nav-role-badge.alumni {
  background-color: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.nav-role-badge.school_representative {
  background-color: rgba(236, 72, 153, 0.1);
  color: #DB2777;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

/* ============================================================
   ADMIN DASHBOARD STYLES
   ============================================================ */

/* --- Auth Loading Overlay --- */
.auth-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.4s ease;
}

.auth-loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.auth-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.auth-loading-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Dashboard Layout --- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--light-bg);
}

/* --- Sidebar --- */
.dashboard-sidebar {
  width: 260px;
  min-width: 260px;
  background-color: var(--white);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.dashboard-logo-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-logo-section .logo {
  font-size: 1.3rem;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  flex: 1;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

.dashboard-nav-link .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dashboard-nav-link .icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-nav-link:hover {
  background-color: var(--light-bg);
  color: var(--primary);
}

.dashboard-nav-link.active {
  background: linear-gradient(135deg, rgba(0, 102, 200, 0.08), rgba(0, 163, 255, 0.06));
  color: var(--primary);
  font-weight: 700;
}

.dashboard-sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* --- Main Content --- */
.dashboard-main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Top Bar --- */
.dashboard-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

/* --- Workspace --- */
.dashboard-workspace {
  padding: 28px 32px;
  flex: 1;
  overflow-y: auto;
}

/* --- Tab Panels --- */
.dashboard-tab-panel {
  display: none;
}

.dashboard-tab-panel.active {
  display: block;
  animation: fadeInTab 0.25s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Stats Grid --- */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.dash-stat-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.dash-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dash-stat-info h4 {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.dash-stat-icon.blue {
  background-color: rgba(59, 130, 246, 0.1);
}

.dash-stat-icon.teal {
  background-color: rgba(0, 210, 196, 0.1);
}

.dash-stat-icon.orange {
  background-color: rgba(245, 158, 11, 0.1);
}

/* --- Table Cards --- */
.dash-table-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dash-table-wrapper {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dash-table thead {
  background-color: var(--light-bg);
}

.dash-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-main);
}

.dash-table tbody tr:hover {
  background-color: rgba(0, 102, 200, 0.02);
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Badge Status --- */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.status-approved {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status-rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--dark-bg);
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.35s ease;
}

.toast-alert.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.toast-alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* --- About Meta List (used in Overview) --- */
.about-meta-list {
  list-style: none;
}

.about-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 8px 0;
}

.about-meta-item span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.about-meta-item span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

/* --- Form Styles (Modal Forms) --- */
.modal-title {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 102, 200, 0.1);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* --- Success Screen --- */
.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.success-screen.active {
  display: flex;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
}

/* --- Spinner --- */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* --- Dashboard Responsive --- */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 220px;
    min-width: 220px;
  }
  .dashboard-main-content {
    margin-left: 220px;
  }
  .dash-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    display: none;
  }
  .dashboard-main-content {
    margin-left: 0;
  }
  .dashboard-workspace {
    padding: 16px;
  }
  .dashboard-top-bar {
    padding: 12px 16px;
  }
}



/* ==========================================================================
   --- Student Profile Page Styles ---
   ========================================================================== */

.profile-wrapper {
  padding-top: 24px;
  padding-bottom: 80px;
  min-height: calc(100vh - 80px);
  background-color: var(--light-bg);
}

.profile-loading-state,
.profile-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 40px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

/* Hero Card */
.profile-hero-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.profile-hero-banner-wrap {
  position: relative;
  height: 220px;
  width: 100%;
}

.profile-hero-banner {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #00c6ff 50%, var(--accent) 100%);
}

.profile-hero-details {
  display: flex;
  flex-direction: column;
  padding: 0 40px 32px 40px;
  position: relative;
}

@media (min-width: 768px) {
  .profile-hero-details {
    flex-direction: row;
    align-items: flex-end;
    gap: 32px;
  }
}

.profile-avatar-container {
  position: relative;
  margin-top: -80px;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .profile-avatar-container {
    margin-bottom: 0;
  }
}

.profile-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  border: 5px solid var(--white);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.avatar-initial {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
}

.avatar-upload-trigger {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  color: var(--text-muted);
}

.avatar-upload-trigger:hover {
  background-color: var(--light-bg);
  color: var(--primary);
  transform: scale(1.05);
}

.profile-header-info {
  flex-grow: 1;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .profile-header-info {
    margin-top: 0;
    padding-bottom: 8px;
  }
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-bg);
  line-height: 1.2;
}

.profile-badges-row {
  display: flex;
  gap: 8px;
}

.badge-type, .badge-role {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.badge-type.student {
  background-color: #F1F5F9;
  color: #475569;
}
.badge-type.teacher {
  background-color: #FEF3C7;
  color: #D97706;
}
.badge-type.parent {
  background-color: #F3E8FF;
  color: #7E22CE;
}
.badge-type.alumni {
  background-color: #E0F2FE;
  color: #0369A1;
}
.badge-type.school_representative {
  background-color: #DCFCE7;
  color: #166534;
}

.badge-role.super_admin {
  background-color: #FEE2E2;
  color: #991B1B;
}
.badge-role.school_admin {
  background-color: #E0F2FE;
  color: #0369A1;
}

.verified-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  color: #1D9BF0; /* X/Twitter Electric Blue */
  fill: currentColor;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
}

.verified-badge:hover {
  transform: scale(1.2) rotate(8deg);
  filter: drop-shadow(0 0 6px rgba(29, 155, 240, 0.7));
}

.verified-badge.gold {
  color: #EAB308; /* Premium Gold */
}

.verified-badge.gold:hover {
  filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.85));
}

/* Badge Size Modifiers */
.verified-badge-lg {
  width: 20px !important;
  height: 20px !important;
}

.verified-badge-md {
  width: 16px !important;
  height: 16px !important;
}

.verified-badge-sm {
  width: 13px !important;
  height: 13px !important;
}

.profile-headline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.profile-school-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.profile-school-text a {
  color: var(--primary);
  transition: var(--transition-fast);
}

.profile-school-text a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.profile-actions {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .profile-actions {
    margin-top: 0;
    align-self: flex-end;
    padding-bottom: 8px;
  }
}

/* Grid Layout */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 992px) {
  .profile-grid {
    grid-template-columns: 2.2fr 1fr;
  }
}

.profile-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-section {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 12px;
}

.bio-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.7;
}

.empty-section-msg {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Skills and Sports tags */
.skills-list, .sports-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-skill-chip {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(0, 102, 200, 0.08);
  transition: var(--transition-fast);
}

.profile-skill-chip:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 102, 200, 0.15);
}

.profile-sport-chip {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(0, 210, 196, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.profile-sport-chip:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 210, 196, 0.15);
}

.sport-icon {
  font-size: 1rem;
}

/* Achievements Timeline */
.achievements-timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border-color);
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.achievements-timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background-color: var(--light-bg);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-fast);
}

.timeline-content:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 102, 200, 0.15);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.5;
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .certificates-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-cert-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--white);
  transition: var(--transition-smooth);
}

.profile-cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 200, 0.18);
}

.cert-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cert-info {
  flex-grow: 1;
}

.cert-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* Sidebar Columns */
.profile-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-sidebar-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.profile-sidebar-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 12px;
}

.school-sidebar-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.school-logo-placeholder {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.school-text-info {
  flex-grow: 1;
}

.sidebar-school-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.sidebar-school-title a {
  color: inherit;
}

.sidebar-school-title a:hover {
  color: var(--primary);
}

.sidebar-school-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.sidebar-school-city {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.sidebar-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-val {
  color: var(--text-main);
  font-weight: 700;
}

.card-cta {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  color: var(--white);
  border: none;
}

.card-cta h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-top: 12px;
  margin-bottom: 8px;
}

.card-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cta-icon {
  font-size: 2.2rem;
  display: inline-block;
}

/* Edit Modal adjustments & tab panes */
.modal-large {
  max-width: 720px !important;
  width: 90% !important;
}

.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.modal-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.tab-btn {
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.field-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Tag Inputs and custom chips */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  min-height: 52px;
  background-color: var(--white);
  align-items: center;
  transition: var(--transition-fast);
}

.tag-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.tag-input-container input {
  border: none !important;
  outline: none !important;
  flex-grow: 1 !important;
  font-size: 0.88rem !important;
  min-width: 160px !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
}

.tag-chip {
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 0.8;
  transition: var(--transition-fast);
}

.tag-remove:hover {
  color: var(--primary);
}

.editable-list-items {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.editable-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-remove-list-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: var(--transition-fast);
}

.btn-remove-list-item:hover {
  color: var(--primary);
}

.achievement-input-row {
  display: flex;
  gap: 12px;
}

.achievement-input-row input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.achievement-input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.form-row {
  display: flex;
  gap: 20px;
}

.col-6 {
  width: 50%;
}

@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .col-6 {
    width: 100%;
  }
}

.form-actions-modal {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 30px;
  border-top: 1.5px solid var(--border-color);
  padding-top: 24px;
}

/* Toast Notification Alerts */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-alert {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, hsl(217, 71%, 48%), hsl(217, 71%, 38%));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-width: 280px;
  max-width: 420px;
  backdrop-filter: blur(8px);
}

.toast-alert.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-alert-success {
  background: linear-gradient(135deg, hsl(150, 60%, 42%), hsl(150, 60%, 32%));
}

.toast-alert-info {
  background: linear-gradient(135deg, hsl(217, 71%, 48%), hsl(217, 71%, 38%));
}

.toast-alert-error {
  background: linear-gradient(135deg, hsl(0, 65%, 50%), hsl(0, 65%, 40%));
}

@media (max-width: 576px) {
  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }
  .toast-alert {
    min-width: auto;
    max-width: 100%;
  }
}

/* User profile link styles in header */
.nav-profile-link {
  transition: var(--transition-fast);
}

.nav-profile-link:hover {
  opacity: 0.85;
  transform: translateY(-0.5px);
}

/* ============================================================
   LINKEDIN-STYLE SOCIAL FEED SYSTEM
   ============================================================ */

.feed-container {
  padding-top: 24px; /* Offset sticky header */
  padding-bottom: 60px;
  background-color: var(--light-bg);
  min-height: calc(100vh - 80px);
}

.feed-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* Feed Sidebar Card Base */
.feed-sidebar-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.feed-sidebar-card:hover {
  box-shadow: var(--shadow-md);
}

/* Left Profile Sidebar Card */
.profile-sidebar-card {
  text-align: center;
}

.profile-card-cover {
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.profile-card-cover.color-1 { background: linear-gradient(135deg, #0066C8, #00A3FF); }
.profile-card-cover.color-2 { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.profile-card-cover.color-3 { background: linear-gradient(135deg, #065f46, #0f766e); }
.profile-card-cover.color-4 { background: linear-gradient(135deg, #b91c1c, #991b1b); }
.profile-card-cover.color-5 { background: linear-gradient(135deg, #7c2d12, #9a3412); }

.profile-card-info {
  padding: 0 16px 20px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-card-avatar-link {
  margin-top: -30px;
  margin-bottom: 12px;
  display: inline-block;
  border-radius: 50%;
  padding: 3px;
  background-color: var(--white);
}

.feed-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.feed-user-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.profile-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 6px;
}

.profile-card-name a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.profile-card-name a:hover {
  color: var(--primary);
}

.profile-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.profile-card-badge.student {
  background-color: var(--primary-light);
  color: var(--primary);
}

.profile-card-badge.school_representative {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.profile-card-headline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 500;
}

.profile-card-school {
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 600;
}

.profile-card-footer {
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
}

.btn-profile-view {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-profile-view:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Shortcuts Card */
.shortcuts-sidebar-card {
  padding: 20px;
}

.shortcuts-sidebar-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.shortcuts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcuts-list a {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.shortcuts-list a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Guest Welcome Card */
.guest-welcome-card {
  text-align: center;
}

.guest-card-cover {
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.guest-card-content {
  padding: 0 20px 24px 20px;
}

.guest-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--white);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -27px auto 14px auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.guest-card-content h3 {
  font-size: 1.15rem;
  color: var(--dark-bg);
  margin-bottom: 8px;
}

.guest-card-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.guest-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-actions .btn-block {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  text-align: center;
  justify-content: center;
}

/* Share Post Box */
.create-post-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.create-post-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.share-box-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.share-box-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.btn-start-post {
  flex-grow: 1;
  text-align: left;
  background-color: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 12px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-start-post:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}

.create-post-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.btn-share-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-share-action:hover {
  background-color: var(--light-bg);
}

.action-icon {
  font-size: 1.2rem;
}

/* Guest Share Box */
.guest-share-box {
  padding: 24px;
  text-align: center;
}

.guest-share-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.guest-share-emoji {
  font-size: 2.2rem;
}

.guest-share-inner p {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
  max-width: 380px;
}

/* Feed List Heading */
.feed-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.feed-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.feed-sort-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Feed Post Card */
.feed-post-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.feed-post-card:hover {
  box-shadow: var(--shadow-md);
}

/* Post Media / Photo Attachments (Desktop) */
.post-media-container {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #fafbfc;
  width: 100%;
}

.post-media-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Premium Link/Document Preview Card (Desktop) */
.post-link-preview-card {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  background-color: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.link-preview-left-accent {
  width: 72px;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}
.link-preview-badge-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}
.link-preview-badge-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.link-preview-details {
  flex-grow: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.link-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-preview-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0 0 6px 0;
}
.link-preview-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.feed-post-card.highlighted-post {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.45);
  transform: translateY(-4px) scale(1.015);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feed-post-card.highlighted-post.fade-highlight {
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm);
  transform: translateY(0) scale(1);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin-bottom: 12px;
}

.post-avatar-link {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.post-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  display: block;
}

.post-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.post-meta-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-author-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark-bg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-author-name:hover {
  color: var(--primary);
  text-decoration: underline;
}

.post-author-role {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.post-author-role.student {
  background-color: var(--primary-light);
  color: var(--primary);
}

.post-author-role.school_representative {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.post-meta-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.post-author-headline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

.post-meta-separator {
  font-size: 0.8rem;
  color: var(--text-muted);
  user-select: none;
}

.post-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.post-more-btn {
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  align-self: flex-start;
  margin-top: -4px;
}

.post-more-btn:hover {
  background-color: var(--light-bg);
  color: var(--text-main);
}

.post-type-badge-row {
  display: flex;
  margin-bottom: 12px;
}

.post-type-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  position: relative;
  top: auto;
  right: auto;
}

.post-type-badge.type-achievement {
  background-color: #FEF3C7;
  color: #D97706;
}

.post-type-badge.type-win {
  background-color: #D1FAE5;
  color: #059669;
}

.post-type-badge.type-project {
  background-color: #E0F2FE;
  color: #0369A1;
}

.post-type-badge.type-event {
  background-color: #F3E8FF;
  color: #6B21A8;
}

.badge-icon {
  font-size: 0.95rem;
}

.post-body {
  margin-bottom: 14px;
}

.post-text-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-wrap;
}

.post-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.likes-count-display {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-actions-row {
  display: flex;
  gap: 8px;
}

.btn-post-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-post-action:hover {
  background-color: var(--light-bg);
  color: var(--text-main);
}

.btn-post-action.liked {
  color: var(--primary);
}

.btn-post-action.liked svg {
  fill: var(--primary);
  stroke: var(--primary);
}

.action-svg-icon {
  transition: var(--transition-fast);
}

/* Comments Section */
.post-comments-container {
  margin-top: 14px;
}

.comments-divider {
  border-top: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.post-comment-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-input-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.comment-input-wrapper {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.comment-input-field {
  width: 100%;
  padding: 10px 42px 10px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background-color: var(--light-bg);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
  color: var(--text-main);
}

.comment-input-field:focus {
  border-color: var(--primary);
  background-color: var(--white);
}

.btn-comment-submit {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: var(--transition-fast);
}

.btn-comment-submit:hover {
  color: var(--primary-hover);
  transform: scale(1.1);
}

.btn-comment-submit:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.guest-comment-prompt {
  background-color: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.guest-comment-prompt a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.post-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-empty-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-item-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.comment-item-content-wrapper {
  flex-grow: 1;
  background-color: var(--light-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 10px 14px;
}

.comment-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.comment-item-author-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comment-item-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-bg);
  text-decoration: none;
}

.comment-item-author-name:hover {
  color: var(--primary);
  text-decoration: underline;
}

.comment-item-author-role {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.comment-item-author-role.student {
  background-color: var(--primary-light);
  color: var(--primary);
}

.comment-item-author-role.school_representative {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.comment-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-item-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Sidebar Widgets (Right) */
.feed-widget-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.feed-widget-card:hover {
  box-shadow: var(--shadow-md);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
}

.widget-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.widget-icon {
  font-size: 1.2rem;
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget-list-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0;
}

.widget-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.widget-item-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.widget-item-school-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}

.widget-item-school-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.widget-item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.widget-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-bg);
  text-decoration: none;
  line-height: 1.3;
  transition: var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-item-title:hover {
  color: var(--primary);
}

.widget-item-subtitle {
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
  margin-top: 2px;
}

.widget-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.widget-view-all {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: 14px;
  transition: var(--transition-fast);
  text-align: center;
}

.widget-view-all:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Feed Loading & Error States */
.feed-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--light-bg);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feed-loading-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feed-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
}

.feed-error-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feed-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.feed-empty-state h3 {
  font-size: 1.2rem;
  color: var(--dark-bg);
  margin-bottom: 6px;
}

.feed-empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Skeletons */
.feed-card-skeleton {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-bottom: 20px;
}

.skeleton-banner {
  height: 60px;
  background-color: var(--light-bg);
}

.skeleton-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--light-bg);
  border: 3px solid var(--white);
  margin: -32px auto 12px auto;
}

.skeleton-line {
  height: 12px;
  background-color: var(--light-bg);
  margin: 8px 20px;
  border-radius: var(--radius-sm);
}

.skeleton-line.short {
  width: 50%;
  margin: 8px auto;
}

.animate-pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Create Post Modal Adjustments */
.post-modal-content {
  max-width: 550px;
}

.post-modal-content textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  resize: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

.post-modal-content textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.post-modal-content select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  background-color: var(--white);
}

/* Media Queries for Feed Layout */
@media (max-width: 1100px) {
  .feed-layout-grid {
    grid-template-columns: 220px 1fr;
  }
  .feed-sidebar-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .feed-layout-grid {
    grid-template-columns: 1fr;
  }
  .feed-sidebar-left {
    display: none;
  }
  .feed-container {
    padding-top: 20px;
    padding-bottom: 40px;
  }
}

/* ============================================================
   NETWORKING PAGE STYLES
   ============================================================ */

/* Hero Section */
.net-hero {
  padding: 60px 0 30px;
  background: linear-gradient(135deg, hsl(217, 71%, 14%) 0%, hsl(230, 45%, 22%) 50%, hsl(250, 40%, 18%) 100%);
  position: relative;
  overflow: hidden;
}

.net-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, hsla(217, 90%, 60%, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.net-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, hsla(280, 90%, 60%, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.net-hero-content {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.net-hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.net-hero-content p {
  font-size: 1.05rem;
  color: hsla(0, 0%, 100%, 0.65);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search Bar */
.net-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.net-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: hsla(0, 0%, 100%, 0.1);
  border: 1.5px solid hsla(0, 0%, 100%, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.net-search-bar:focus-within {
  background: hsla(0, 0%, 100%, 0.15);
  border-color: hsla(217, 90%, 60%, 0.5);
  box-shadow: 0 0 0 4px hsla(217, 90%, 60%, 0.12);
}

.net-search-bar svg {
  color: hsla(0, 0%, 100%, 0.5);
  flex-shrink: 0;
}

.net-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.95rem;
  flex-grow: 1;
  font-weight: 500;
}

.net-search-bar input::placeholder {
  color: hsla(0, 0%, 100%, 0.4);
}

/* Main Content */
.net-main {
  padding: 32px 0 60px;
  min-height: 60vh;
}

/* Filter Tabs */
.net-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.net-filter-tabs::-webkit-scrollbar {
  display: none;
}

.net-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.net-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: hsla(217, 90%, 60%, 0.04);
}

.net-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.net-tab.active svg {
  stroke: var(--white);
}

.net-tab svg {
  flex-shrink: 0;
}

/* Results bar */
.net-results-bar {
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Card Grid */
.net-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Person & School Card */
.net-card {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.net-card:hover {
  border-color: hsla(217, 90%, 60%, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.net-card-banner {
  height: 70px;
  background: linear-gradient(135deg, hsl(217, 90%, 55%), hsl(250, 80%, 60%));
}

.net-card-banner.color-1 { background: linear-gradient(135deg, hsl(217, 90%, 55%), hsl(250, 80%, 60%)); }
.net-card-banner.color-2 { background: linear-gradient(135deg, hsl(168, 70%, 42%), hsl(190, 80%, 45%)); }
.net-card-banner.color-3 { background: linear-gradient(135deg, hsl(20, 90%, 55%), hsl(340, 80%, 58%)); }
.net-card-banner.color-4 { background: linear-gradient(135deg, hsl(220, 85%, 50%), hsl(200, 95%, 50%)); }
.net-card-banner.color-5 { background: linear-gradient(135deg, hsl(270, 70%, 50%), hsl(310, 70%, 55%)); }

.net-card-body {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.net-card-avatar-link {
  display: block;
  margin-top: -30px;
  margin-bottom: 12px;
  text-decoration: none;
}

.net-card-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.net-card-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), hsl(250, 80%, 60%));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.net-card-avatar-placeholder.school-logo {
  border-radius: var(--radius-sm);
}

.net-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 6px;
  transition: var(--transition-fast);
  display: block;
}

.net-card-name:hover {
  color: var(--primary);
}

.net-card-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.net-card-type-badge.student {
  background: hsla(217, 90%, 55%, 0.1);
  color: hsl(217, 90%, 45%);
}

.net-card-type-badge.teacher {
  background: hsla(150, 70%, 40%, 0.1);
  color: hsl(150, 70%, 35%);
}

.net-card-type-badge.alumni {
  background: hsla(270, 60%, 50%, 0.1);
  color: hsl(270, 60%, 45%);
}

.net-card-type-badge.parent {
  background: hsla(30, 80%, 50%, 0.1);
  color: hsl(30, 80%, 40%);
}

.net-card-type-badge.school_representative {
  background: hsla(340, 70%, 50%, 0.1);
  color: hsl(340, 70%, 45%);
}

.net-card-school {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.net-card-bio {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.net-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 4px;
}

.net-skill-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--light-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.net-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

/* Follow / Following Buttons */
.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid var(--primary);
  background: var(--primary);
  color: var(--white);
}

.btn-follow:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px hsla(217, 90%, 50%, 0.25);
}

.btn-following {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid var(--border-color);
  background: var(--white);
  color: var(--text-main);
}

.btn-following:hover {
  border-color: hsl(0, 65%, 50%);
  color: hsl(0, 65%, 50%);
  background: hsla(0, 65%, 50%, 0.04);
}

.btn-following:hover span {
  display: none;
}

.btn-following:hover::after {
  content: 'Unfollow';
}

.btn-view-profile {
  padding: 8px 22px !important;
  border-radius: 999px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none;
}

/* Empty State */
.net-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.net-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.net-empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.net-empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Skeleton loader for networking cards */
.net-card-skeleton {
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
}

/* Feed filter toggle (on homepage) */
.feed-filter-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.feed-filter-btn {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.feed-filter-btn:hover {
  color: var(--text-main);
}

.feed-filter-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Follow button on profile pages */
.btn-profile-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-profile-follow.follow-state {
  background: var(--primary);
  color: var(--white);
  border: 1.5px solid var(--primary);
}

.btn-profile-follow.follow-state:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-profile-follow.following-state {
  background: var(--white);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-profile-follow.following-state:hover {
  border-color: hsl(0, 65%, 50%);
  color: hsl(0, 65%, 50%);
}

/* Responsive */
@media (max-width: 1024px) {
  .net-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .net-hero-content h1 {
    font-size: 1.8rem;
  }
  .net-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .net-filter-tabs {
    gap: 6px;
  }
  .net-tab {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 576px) {
  .net-card-grid {
    grid-template-columns: 1fr;
  }
  .net-hero {
    padding: 50px 0 20px;
  }
  .net-hero-content h1 {
    font-size: 1.5rem;
  }
}

/* Feed Filter Tabs Custom Styling */
.feed-filter-tab:not(.active):hover {
  color: var(--primary) !important;
  border-bottom-color: rgba(0, 102, 200, 0.3) !important;
}

/* Connection buttons styling */
.btn-connect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--primary);
  color: var(--white);
  border: 1.5px solid var(--primary);
}

.btn-connect:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 200, 0.2);
}

.btn-requested {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: #f3f4f6;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-requested:hover {
  background: #e5e7eb;
  color: var(--text-main);
}

.btn-connected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
}

.btn-connected:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Connection Requests Inbox section */
.connections-inbox-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border-color);
}

.connections-inbox-section h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.connections-inbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.connection-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition-smooth);
}

.connection-request-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.connection-request-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.connection-request-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.connection-request-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 2px;
}

.connection-request-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.connection-request-actions {
  display: flex;
  gap: 8px;
}

.btn-accept-request {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-accept-request:hover {
  background: var(--primary-hover);
}

.btn-reject-request {
  background: var(--white);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reject-request:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* ============================================================
   NOTIFICATION BELL & PANEL
   ============================================================ */

/* --- Bell Wrapper --- */
.notif-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* --- Bell Button --- */
.notif-bell-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.75rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  outline: none;
}

.notif-bell-btn:hover {
  color: var(--text-main);
}

/* --- Badge --- */
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: #EF4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--white);
  animation: notifBadgePulse 2s infinite;
  pointer-events: none;
}

@keyframes notifBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* --- Panel --- */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -60px;
  width: 380px;
  max-height: 480px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-panel-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* --- Panel Header --- */
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.notif-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.notif-mark-all-btn:hover {
  background: var(--primary-light);
}

/* --- Notification List --- */
.notif-list {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.notif-list::-webkit-scrollbar {
  width: 4px;
}

.notif-list::-webkit-scrollbar-track {
  background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* --- Notification Item --- */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  position: relative;
}

.notif-item:hover {
  background: rgba(var(--primary-rgb), 0.04);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-unread {
  background: rgba(var(--primary-rgb), 0.03);
}

.notif-read {
  opacity: 0.7;
}

/* --- Notification Icon --- */
.notif-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* --- Notification Content --- */
.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

.notif-body {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: inline-block;
}

/* --- Unread Dot --- */
.notif-unread-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
}

/* --- Empty State --- */
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.notif-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.notif-empty-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
}

.notif-empty-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 240px;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .notif-panel {
    width: calc(100vw - 24px);
    right: -100px;
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .notif-panel {
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
}


/* ====================================================================
   EDIT PROFILE MODAL (EPM) — Premium LinkedIn-Style Editor
   ==================================================================== */

/* Editor Container */
.epm-editor {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: epmSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#edit-profile-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@keyframes epmSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close Button */
.epm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.epm-close:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.05);
}

/* ---- Profile Header ---- */
.epm-header {
  position: relative;
  flex-shrink: 0;
}

.epm-banner {
  height: 60px;
  background: linear-gradient(135deg, #0066C8 0%, #00D2C4 50%, #0066C8 100%);
  background-size: 200% 200%;
  position: relative;
}

.epm-header-content {
  display: flex;
  flex-direction: column;
  padding: 0 28px 16px;
  position: relative;
}

.epm-profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -32px;
}

.epm-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.epm-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  background-size: cover;
  background-position: center;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.epm-avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #ffffff;
  color: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 1.5px solid #cbd5e1;
  transition: all 0.15s ease;
}

.epm-avatar-edit-badge:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: scale(1.05);
}

.epm-cover-upload-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
  z-index: 5;
}

.epm-cover-upload-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #94a3b8;
}

.epm-header-info {
  flex: 1;
  min-width: 0;
}

.epm-header-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epm-header-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0;
  font-weight: 500;
}

/* Profile Strength Bar */
.epm-strength {
  margin-top: 14px;
  width: 100%;
}

.epm-strength-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.epm-strength-pct {
  color: var(--primary);
  font-weight: 700;
}

.epm-strength-bar {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.epm-strength-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066C8, #00D2C4);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Tab Navigation ---- */
.epm-tabs {
  display: flex;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  background: #ffffff;
}

.epm-tabs::-webkit-scrollbar {
  display: none;
}

.epm-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  position: relative;
}

.epm-tab svg {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.epm-tab:hover {
  color: var(--text-main);
  background-color: transparent;
}

.epm-tab:hover svg {
  opacity: 0.9;
}

.epm-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.epm-tab.active svg {
  opacity: 1;
  stroke: var(--primary);
}

/* ---- Body / Content Area ---- */
.epm-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}

.epm-body::-webkit-scrollbar {
  width: 5px;
}

.epm-body::-webkit-scrollbar-track {
  background: transparent;
}

.epm-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

/* Section Titles */
.epm-section-title {
  margin-bottom: 24px;
}

.epm-section-title h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.epm-section-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* ---- Form Fields ---- */
.epm-field {
  margin-bottom: 20px;
}

.epm-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.epm-required {
  color: #ef4444;
  font-weight: 700;
}

.epm-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.epm-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 200, 0.12);
}

.epm-input::placeholder {
  color: #94a3b8;
}

select.epm-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 36px;
}

.epm-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.epm-field-hint {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 6px;
  font-weight: 500;
}

.epm-field-row {
  display: flex;
  gap: 16px;
}

.epm-field-row > .epm-field {
  flex: 1;
}

/* ---- Add Row (Achievements / Certificates) ---- */
.epm-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.epm-add-row .epm-input {
  flex: 1;
}

.epm-add-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.epm-add-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 200, 0.25);
}

/* ---- Sticky Footer ---- */
.epm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid var(--border-color);
  background: #fafbfc;
  flex-shrink: 0;
}

.epm-btn-cancel {
  padding: 10px 22px;
  background: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.epm-btn-cancel:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
  background: #f1f5f9;
}

.epm-btn-save {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.epm-btn-save:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 102, 200, 0.3);
}

@media (max-width: 768px) {
  .epm-editor {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
  }
  
  .epm-banner {
    height: 50px;
  }

  .epm-header-content {
    padding: 0 16px 14px;
  }

  .epm-profile-row {
    margin-top: -28px;
  }

  .epm-avatar-wrap {
    width: 56px;
    height: 56px;
  }

  .epm-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .epm-header-name {
    font-size: 1.05rem;
  }

  .epm-tabs {
    padding: 0 12px;
  }

  .epm-tab {
    padding: 12px 12px;
    font-size: 0.8rem;
  }

  .epm-tab span {
    display: none;
  }

  .epm-body {
    padding: 20px 16px;
  }

  .epm-field-row {
    flex-direction: column;
    gap: 0;
  }

  .epm-add-row {
    flex-direction: column;
  }

  .epm-footer {
    padding: 14px 16px;
  }
}


/* ====================================================================
   GLOBAL MOBILE RESPONSIVE FOUNDATION (COMPREHENSIVE)
   LinkedIn / Notion / X-style compact density.
   Pages: Home, Login, Profile, Schools, Events, Admissions.
   Does NOT touch: Messaging, Notifications, Admin Dashboard.
   ==================================================================== */

/* ── Viewport Lock ── */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Bottom Nav (hidden by default) ── */
.mobile-bottom-nav {
  display: none !important;
}

/* ====================================================================
   TABLET — max 1024px
   ==================================================================== */
@media (max-width: 1024px) {

  /* Feed: collapse to 2 columns */
  .feed-layout-grid {
    grid-template-columns: 1fr 280px !important;
  }

  .feed-sidebar-left {
    display: none !important;
  }

  /* Profile hero */
  .profile-hero-details {
    padding: 0 28px 24px 28px !important;
  }

  .profile-avatar-container {
    width: 120px !important;
    height: 120px !important;
  }

  .profile-avatar-large {
    width: 120px !important;
    height: 120px !important;
  }
}

/* ====================================================================
   MOBILE — max 768px  (main breakpoint)
   ==================================================================== */
@media (max-width: 768px) {

  /* ── Navigation ── */
  .header-nav .nav-list {
    display: none !important;
  }

  .mobile-toggle {
    display: block !important;
    min-height: 44px;
    min-width: 44px;
  }

  header .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header-search {
    display: none;
  }

  /* Notification panel: full-width on mobile */
  .notif-panel {
    position: fixed !important;
    top: 52px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
  }

  /* Me dropdown: full-width */
  .me-dropdown {
    position: fixed !important;
    top: 52px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    border-radius: 12px !important;
  }

  /* ── Mobile bottom nav ── */
  .mobile-bottom-nav.visible {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding: 4px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  }

  body.has-bottom-nav {
    padding-bottom: 60px !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    min-height: 44px;
    transition: color 0.15s ease;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    color: #64748b;
    transition: stroke 0.15s ease;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    color: var(--primary);
  }

  .mobile-nav-item:hover svg,
  .mobile-nav-item.active svg {
    stroke: var(--primary);
  }

  /* ── Global Layout ── */
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100% !important;
  }

  .section {
    padding: 20px 0 !important;
  }

  body {
    padding-top: 52px;
  }

  /* ── Typography: Compact, not oversized ── */
  h1 {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
  }
  h2 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
  h3 {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }
  h4 {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }
  p, body, li {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
  label {
    font-size: 0.8rem !important;
  }

  /* ── Buttons: 44-48px, compact ── */
  .btn, button {
    min-height: 44px;
    max-height: 48px;
    font-size: 0.85rem !important;
    padding: 10px 16px !important;
  }

  /* Don't upsize icon-only buttons */
  .password-toggle-btn,
  .auth-toast-close,
  .notif-bell-btn,
  .avatar-upload-trigger,
  .modal-close-btn {
    min-height: auto;
    max-height: none;
    padding: 4px !important;
  }

  /* ── Forms: full-width, compact ── */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  input[type="date"],
  select,
  textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.875rem !important;
    min-height: 44px;
  }

  .form-group, .epm-field, .auth-form-row, .epm-field-row {
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  /* ── Grids: stack on mobile ── */
  .grid,
  .features-grid,
  .showcase-grid,
  .about-meta-list,
  .dash-stats-grid,
  .dash-stats-row,
  .hero-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* ── Hero Section ── */
  .hero-section {
    padding: 16px 0 !important;
  }

  .hero-content h1 {
    font-size: 1.5rem !important;
  }

  .hero-content p {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
  }

  .hero-mockup {
    display: none;
  }

  .btn-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .btn-group .btn {
    width: 100% !important;
  }

  /* ── Feed Layout: single column ── */
  .feed-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .feed-sidebar-left,
  .feed-sidebar-right {
    display: none !important;
  }

  .feed-container {
    padding-top: 12px !important;
    padding-bottom: 20px !important;
  }

  .feed-main-content {
    padding: 0 !important;
  }

  .feed-heading-row {
    margin-bottom: 12px !important;
    padding: 0 2px !important;
  }

  .feed-title {
    font-size: 1.15rem !important;
  }

  .feed-filter-tabs {
    gap: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }

  .feed-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .feed-filter-tab {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
  }

  /* ── Feed Widget Cards (sidebar content on desktop) ── */
  .feed-widget-card {
    display: none !important;
  }

  /* ── Social Feed Post Cards: compact ── */
  .social-feed-list {
    gap: 8px !important;
  }

  /* ── Cards: full-width, compact vertical ── */
  .card,
  .school-card-item,
  .event-card,
  .admission-card,
  .connection-card,
  .dash-stat-card,
  .dash-table-card,
  .feed-sidebar-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ── School Cards ── */
  .school-card-item {
    border-radius: 10px !important;
  }

  .school-card-banner-bg {
    height: 80px !important;
  }

  .school-card-content {
    padding: 12px 14px !important;
  }

  .school-card-name {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
  }

  .school-card-location {
    font-size: 0.78rem !important;
  }

  .school-card-stats {
    font-size: 0.75rem !important;
    gap: 8px !important;
    padding-top: 8px !important;
    margin-top: 8px !important;
  }

  /* Schools grid → single column */
  .schools-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* School filters: horizontal scroll */
  .school-filter-bar,
  .school-filters {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }

  .school-filter-bar::-webkit-scrollbar,
  .school-filters::-webkit-scrollbar {
    display: none;
  }

  /* ── Event Cards ── */
  .event-card {
    border-radius: 10px !important;
  }

  .event-card-header {
    padding: 12px 14px !important;
  }

  .event-card-logo {
    width: 36px !important;
    height: 36px !important;
  }

  .event-card-school-name {
    font-size: 0.82rem !important;
  }

  .event-card-body {
    padding: 12px 14px !important;
  }

  .event-card-title {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
  }

  .event-card-footer {
    padding: 10px 14px !important;
  }

  /* Events grid → single column */
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ── Admission Cards ── */
  .admission-card {
    border-radius: 10px !important;
  }

  .admissions-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ── Profile Page ── */
  .profile-wrapper {
    padding-top: 12px !important;
    padding-bottom: 40px !important;
  }

  .profile-hero-card {
    border-radius: 0 !important;
    margin-bottom: 12px !important;
  }

  .profile-hero-banner-wrap {
    height: 120px !important;
  }

  .profile-hero-details {
    padding: 0 16px 20px 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .profile-avatar-container {
    width: 80px !important;
    height: 80px !important;
    margin-top: -40px !important;
    margin-bottom: 8px !important;
  }

  .profile-avatar-large {
    width: 80px !important;
    height: 80px !important;
    border-width: 3px !important;
  }

  .avatar-initial {
    font-size: 2rem !important;
  }

  .avatar-upload-trigger {
    width: 28px !important;
    height: 28px !important;
    bottom: 2px !important;
    right: 2px !important;
  }

  .profile-name {
    font-size: 1.25rem !important;
  }

  .profile-name-row {
    gap: 8px !important;
  }

  .profile-headline {
    font-size: 0.82rem !important;
  }

  .profile-meta-info {
    font-size: 0.78rem !important;
    gap: 6px !important;
  }

  .badge-type, .badge-role {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
  }

  /* Profile sections: compact spacing */
  .profile-section {
    padding: 16px !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
  }

  .profile-section-header {
    margin-bottom: 12px !important;
  }

  .profile-section-title {
    font-size: 1rem !important;
  }

  /* Profile action buttons */
  .profile-actions {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .profile-actions .btn {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
  }

  /* ── Footer: compact stacked ── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: span 1 !important;
  }

  .site-footer {
    padding: 40px 0 20px 0 !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .newsletter-form {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .newsletter-form button {
    width: 100% !important;
  }

  /* ── Modals: full-width, scrollable ── */
  .modal-overlay {
    padding: 8px !important;
    align-items: flex-start !important;
  }

  .modal-content {
    max-width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-top: 8px !important;
  }

  .modal-title {
    font-size: 1.1rem !important;
  }

  .post-modal-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ── Tables: horizontal scroll ── */
  .dash-table-wrapper,
  table {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  /* ── Spacing reduction ── */
  .mb-lg { margin-bottom: 16px !important; }
  .mt-lg { margin-top: 16px !important; }
  .py-lg { padding-top: 16px !important; padding-bottom: 16px !important; }

  /* ── Floating elements ── */
  .floating-card { display: none !important; }

  /* ── Image overflow prevention ── */
  img:not(.post-avatar-img):not(.feed-user-avatar):not(.comment-item-avatar):not(.comment-input-avatar):not(.share-box-avatar):not(.net-card-avatar-img):not(.connection-request-avatar) {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ── Steps container ── */
  .steps-container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .steps-container::before {
    display: none !important;
  }

  /* ── Page-level section titles ── */
  .page-title,
  .section-title {
    font-size: 1.25rem !important;
  }

  .page-subtitle,
  .section-subtitle {
    font-size: 0.82rem !important;
  }

  /* ── Stat cards: compact ── */
  .stat-card, .stat-item {
    padding: 12px !important;
  }

  .stat-value {
    font-size: 1.3rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
  }

  /* ── Tab navigation: horizontal scroll ── */
  .tab-nav, .tabs, .filter-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    gap: 4px !important;
  }

  .tab-nav::-webkit-scrollbar,
  .tabs::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-nav .tab, .tab-item {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 8px 14px !important;
    flex-shrink: 0 !important;
  }

  /* ── Reduce BG animation for performance ── */
  .auth-bg-shape {
    filter: blur(60px) !important;
    opacity: 0.15 !important;
  }
}

/* ====================================================================
   SMALL PHONE — max 480px
   ==================================================================== */
@media (max-width: 480px) {
  h1 {
    font-size: 1.35rem !important;
  }
  h2 {
    font-size: 1.15rem !important;
  }
  h3 {
    font-size: 1rem !important;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Profile avatar even smaller */
  .profile-avatar-container {
    width: 68px !important;
    height: 68px !important;
    margin-top: -34px !important;
  }

  .profile-avatar-large {
    width: 68px !important;
    height: 68px !important;
  }

  .profile-name {
    font-size: 1.15rem !important;
  }

  /* Hero banner shorter */
  .profile-hero-banner-wrap {
    height: 100px !important;
  }

  /* Cards: tighter padding */
  .school-card-content,
  .event-card-body,
  .event-card-header,
  .event-card-footer {
    padding: 10px 12px !important;
  }

  /* Footer grid single column */
  .footer-grid {
    gap: 20px !important;
  }

  /* Modal tighter */
  .modal-content {
    padding: 12px !important;
    border-radius: 10px !important;
  }
}


/* ====================================================================
   PHASE 2 — AUTH PAGES MOBILE OPTIMIZATION
   Compact, LinkedIn/Notion-style. No logic changes.
   ==================================================================== */

/* ── Avatar upload area (register form) ── */
.avatar-upload-area {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.avatar-upload-area:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.avatar-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--primary);
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar-upload-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.avatar-upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Role card grid (visual role selector) ── */
.role-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  user-select: none;
}

.role-card:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}

.role-card.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.role-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.role-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.role-card.selected .role-card-label {
  color: var(--primary);
}

/* ── Forgot password link ── */
.auth-forgot-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: -4px;
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
}

.auth-forgot-link:hover {
  opacity: 0.75;
}

/* ── Mobile compact header (hidden on desktop) ── */
.auth-mobile-header {
  display: none;
}

/* ====================================================================
   AUTH RESPONSIVE BREAKPOINTS
   ==================================================================== */

/* Tablet: narrow brand panel */
@media (max-width: 1024px) {
  .auth-brand-panel {
    flex: 0 0 360px;
    padding: 40px 32px;
  }

  .auth-brand-panel h1 {
    font-size: 1.65rem;
  }

  .auth-brand-features {
    gap: 16px;
    margin-bottom: 28px;
  }
}

/* Mobile: full single-column layout */
@media (max-width: 768px) {

  .auth-page-body {
    min-height: 100dvh;
  }

  .auth-page-wrapper {
    flex-direction: column;
    min-height: 100dvh;
  }

  /* Hide desktop brand panel */
  .auth-brand-panel {
    display: none !important;
  }

  /* Show compact mobile brand header */
  .auth-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--white);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
  }

  .auth-mobile-logo {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
  }

  .auth-mobile-logo .logo-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    margin-left: 2px;
    vertical-align: middle;
  }

  .auth-mobile-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  /* Full-width scrollable form panel */
  .auth-form-panel {
    flex: 1;
    padding: 20px 20px 32px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-form-container {
    max-width: 100%;
    width: 100%;
  }

  /* Compact tab toggle */
  .auth-tab-toggle {
    margin-bottom: 20px;
  }

  .auth-tab-btn {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  /* Form header: max 24px title */
  .auth-form-header {
    margin-bottom: 16px;
  }

  .auth-form-header h2 {
    font-size: 1.3rem !important;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .auth-form-header p {
    font-size: 0.82rem;
  }

  /* Form group compact spacing */
  .auth-form .form-group {
    margin-bottom: 12px !important;
  }

  /* Input compact height */
  .auth-form .input-icon-wrapper input,
  .auth-form .input-icon-wrapper select {
    padding: 10px 0 !important;
    font-size: 0.88rem !important;
  }

  /* Label compact */
  .auth-form label {
    font-size: 0.8rem !important;
    font-weight: 600;
  }

  /* Submit button — 46px touch target */
  .auth-submit-btn {
    padding: 12px !important;
    font-size: 0.92rem !important;
    min-height: 46px;
    margin-top: 4px;
  }

  /* Footer */
  .auth-form-footer {
    margin-top: 12px;
  }

  .auth-form-footer p {
    font-size: 0.8rem;
  }

  /* Role cards — 2 columns on mobile */
  .role-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .role-card {
    padding: 10px 6px;
  }

  .role-card-icon {
    font-size: 1.2rem;
  }

  .role-card-label {
    font-size: 0.68rem;
  }

  /* Avatar upload compact */
  .avatar-upload-area {
    padding: 10px 12px;
    gap: 10px;
  }

  .avatar-preview {
    width: 40px;
    height: 40px;
  }

  .avatar-upload-label {
    font-size: 0.82rem;
  }

  .avatar-upload-hint {
    font-size: 0.68rem;
  }

  /* Toast: full-width */
  .auth-toast {
    left: 16px;
    right: 16px;
    max-width: none;
    top: 12px;
  }

  /* Reduce blur for performance */
  .auth-bg-shape {
    filter: blur(60px) !important;
    opacity: 0.15 !important;
  }
}

/* Small phone (≤ 480px) */
@media (max-width: 480px) {
  .auth-form-panel {
    padding: 16px 16px 28px;
  }

  .auth-mobile-header {
    padding: 12px 16px;
  }

  .auth-form-header h2 {
    font-size: 1.15rem !important;
  }

  .auth-tab-btn {
    padding: 9px 8px;
    font-size: 0.8rem;
  }

  .role-card-grid {
    gap: 6px;
  }

  .role-card {
    padding: 8px 4px;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .auth-form-panel {
    padding: 12px 20px 20px;
  }

  .auth-form-header {
    margin-bottom: 10px;
  }
    background: var(--white);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
  }

  .auth-mobile-logo {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
  }

  .auth-mobile-logo .logo-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    margin-left: 2px;
    vertical-align: middle;
  }

  .auth-mobile-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  /* Full-width scrollable form panel */
  .auth-form-panel {
    flex: 1;
    padding: 20px 20px 32px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .auth-form-container {
    max-width: 100%;
    width: 100%;
  }

  /* Compact tab toggle */
  .auth-tab-toggle {
    margin-bottom: 20px;
  }

  .auth-tab-btn {
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  /* Form header: max 24px title */
  .auth-form-header {
    margin-bottom: 16px;
  }

  .auth-form-header h2 {
    font-size: 1.3rem !important;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .auth-form-header p {
    font-size: 0.82rem;
  }

  /* Form group compact spacing */
  .auth-form .form-group {
    margin-bottom: 12px !important;
  }

  /* Input compact height */
  .auth-form .input-icon-wrapper input,
  .auth-form .input-icon-wrapper select {
    padding: 10px 0 !important;
    font-size: 0.88rem !important;
  }

  /* Label compact */
  .auth-form label {
    font-size: 0.8rem !important;
    font-weight: 600;
  }

  /* Submit button — 46px touch target */
  .auth-submit-btn {
    padding: 12px !important;
    font-size: 0.92rem !important;
    min-height: 46px;
    margin-top: 4px;
  }

  /* Footer */
  .auth-form-footer {
    margin-top: 12px;
  }

  .auth-form-footer p {
    font-size: 0.8rem;
  }

  /* Role cards — 2 columns on mobile */
  .role-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .role-card {
    padding: 10px 6px;
  }

  .role-card-icon {
    font-size: 1.2rem;
  }

  .role-card-label {
    font-size: 0.68rem;
  }

  /* Avatar upload compact */
  .avatar-upload-area {
    padding: 10px 12px;
    gap: 10px;
  }

  .avatar-preview {
    width: 40px;
    height: 40px;
  }

  .avatar-upload-label {
    font-size: 0.82rem;
  }

  .avatar-upload-hint {
    font-size: 0.68rem;
  }

  /* Toast: full-width */
  .auth-toast {
    left: 16px;
    right: 16px;
    max-width: none;
    top: 12px;
  }

  /* Reduce blur for performance */
  .auth-bg-shape {
    filter: blur(60px) !important;
    opacity: 0.15 !important;
  }
}

/* Small phone (≤ 480px) */
@media (max-width: 480px) {
  .auth-form-panel {
    padding: 16px 16px 28px;
  }

  .auth-mobile-header {
    padding: 12px 16px;
  }

  .auth-form-header h2 {
    font-size: 1.15rem !important;
  }

  .auth-tab-btn {
    padding: 9px 8px;
    font-size: 0.8rem;
  }

  .role-card-grid {
    gap: 6px;
  }

  .role-card {
    padding: 8px 4px;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .auth-form-panel {
    padding: 12px 20px 20px;
  }

  .auth-form-header {
    margin-bottom: 10px;
  }

  .auth-form .form-group {
    margin-bottom: 8px !important;
  }

  .auth-tab-toggle {
    margin-bottom: 12px;
  }
}

/* ====================================================================
   PHASE 4: SCHOOLS, EVENTS & ADMISSIONS MOBILE OPTIMIZATION
   ==================================================================== */

@media (max-width: 768px) {
  /* ── 1. Global Layout & Typography ── */
  h1 {
    font-size: 24px !important;
  }
  h2 {
    font-size: 20px !important;
  }
  h3, .admission-card-school, .event-card-grid-title {
    font-size: 16px !important;
  }
  body {
    font-size: 14px !important;
    padding-top: 52px !important; /* ensure proper header spacing */
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .section {
    padding: 24px 0 !important;
  }

  /* ── 2. Search & Filters Layout ── */
  .schools-filter-section {
    padding: 16px 0 !important;
  }
  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .filter-controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .filter-input-wrapper {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  .filter-select-wrapper {
    min-width: 0 !important; /* override min-width so they fit side-by-side */
  }
  /* For Admissions Filter which has three selects (Class, City, Board) */
  .filter-controls > .filter-select-wrapper:nth-child(4) {
    grid-column: 1 / -1 !important;
  }

  /* Event category tags / tab buttons horizontal scroll */
  .showcase-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
    scrollbar-width: none !important;
  }
  .showcase-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .showcase-tabs .tab-btn {
    flex: 0 0 auto !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
  }

  /* ── 3. Cards & Grids (Schools, Events, Admissions) ── */
  .schools-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Schools Directory Card Optimization */
  .school-card-item {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
  }
  .school-card-banner-bg {
    height: 70px !important;
  }
  .school-logo-overlap {
    width: 56px !important;
    height: 56px !important;
    bottom: -28px !important;
    left: 16px !important;
    font-size: 1.4rem !important;
    border-width: 3px !important;
    border-radius: var(--radius-sm) !important;
  }
  .school-card-content {
    padding: 40px 16px 16px 16px !important;
  }
  .school-card-name {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
  }
  .school-card-badges-row {
    margin-bottom: 12px !important;
    gap: 6px !important;
  }
  .school-card-badges-row .badge {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
  }
  .school-card-content p {
    font-size: 0.82rem !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
  }
  .school-info-meta {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.75rem !important;
  }
  .school-events-badge {
    font-size: 0.75rem !important;
  }
  .btn-contact-trigger {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }

  /* Suggest School Banner */
  .suggest-school-banner {
    padding: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  .suggest-school-banner > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
  .suggest-school-banner h4 {
    font-size: 0.95rem !important;
  }
  .suggest-school-banner p {
    font-size: 0.8rem !important;
  }
  .suggest-school-banner button {
    width: 100% !important;
    padding: 10px !important;
    font-size: 0.85rem !important;
  }

  /* ── 4. School Profile Page ── */
  .profile-banner {
    display: block !important;
    height: 120px !important;
  }
  .profile-header-wrapper {
    margin-top: 10px !important;
    padding: 0 12px !important;
  }
  .profile-header-box {
    padding: 20px 16px 16px 16px !important;
    margin-top: -40px !important;
    border-radius: var(--radius-md) !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .profile-meta-group {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .profile-logo-circle {
    width: 80px !important;
    height: 80px !important;
    margin-top: -56px !important;
    font-size: 2rem !important;
    border-width: 3px !important;
    border-radius: var(--radius-md) !important;
  }
  .profile-identity h1 {
    font-size: 1.3rem !important;
    justify-content: center !important;
    text-align: center !important;
    flex-direction: row !important;
  }
  .profile-identity-meta {
    justify-content: center !important;
    font-size: 0.82rem !important;
    gap: 6px !important;
  }
  .profile-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .profile-actions button, .profile-actions a {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
  }

  /* Profile Tab Buttons Horizontal Scroll */
  .profile-tab-list {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    gap: 8px !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    margin-bottom: 16px !important;
    scrollbar-width: none !important;
  }
  .profile-tab-list::-webkit-scrollbar {
    display: none !important;
  }
  .profile-tab-btn {
    flex: 0 0 auto !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-full) !important;
    border: 1px solid var(--border-color) !important;
    background: var(--white) !important;
    color: var(--text-muted) !important;
  }

  .profile-tab-btn.active {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
  }

  /* Profile Quick Details Grid */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .about-info-card {
    padding: 16px !important;
  }
  .about-info-card h3 {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }
  .about-meta-list {
    gap: 10px !important;
  }
  .about-meta-item {
    font-size: 0.85rem !important;
  }

  /* Admissions status text inside profile */
  .admission-highlight-box {
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  /* ── 5. Events Page Listing ── */
  .event-card-grid-item {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
  }
  .event-card-banner-img {
    height: 100px !important;
    font-size: 2rem !important;
  }
  .event-card-banner-badge {
    top: 10px !important;
    right: 10px !important;
    padding: 3px 10px !important;
    font-size: 0.7rem !important;
  }
  .event-card-grid-content {
    padding: 16px !important;
  }
  .event-card-grid-title {
    font-size: 1rem !important;
    height: auto !important;
    margin-bottom: 6px !important;
  }
  .event-card-host {
    font-size: 0.78rem !important;
    margin-bottom: 10px !important;
  }
  .event-card-meta-row {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    padding-top: 10px !important;
    gap: 6px !important;
  }
  .event-card-meta-item {
    font-size: 0.75rem !important;
  }
  .event-card-footer {
    padding: 12px 16px !important;
  }
  .registrations-count {
    font-size: 0.85rem !important;
  }
  .registrations-label {
    font-size: 0.68rem !important;
  }

  /* ── 6. Event Details Page ── */
  .event-detail-banner {
    height: 120px !important;
  }
  .event-detail-emoji-bg {
    font-size: 2.5rem !important;
    opacity: 0.15 !important;
  }
  .event-detail-header-wrapper {
    margin-top: -30px !important;
    padding: 0 12px !important;
  }
  .event-detail-header-box {
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .event-category-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
  }
  .event-title {
    font-size: 1.25rem !important;
  }
  .event-detail-host-row {
    justify-content: center !important;
    font-size: 0.82rem !important;
  }
  .event-detail-split-grid {
    display: flex !important;
    flex-direction: column-reverse !important; /* show sidebar details/CTA on top */
    gap: 16px !important;
    margin-bottom: 40px !important;
  }
  .event-detail-sidebar-card {
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
    position: static !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .deadline-warning-box {
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    margin-bottom: 16px !important;
  }
  .detail-timeline-list {
    gap: 12px !important;
  }
  .detail-timeline-item {
    gap: 10px !important;
  }
  .detail-timeline-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
  .detail-timeline-label {
    font-size: 0.7rem !important;
  }
  .detail-timeline-value {
    font-size: 0.8rem !important;
  }
  .detail-meta-horizontal {
    margin-top: 16px !important;
    padding: 6px 0 !important;
    font-size: 0.8rem !important;
  }
  .event-detail-sidebar-card button {
    width: 100% !important;
    margin-top: 16px !important;
    padding: 12px !important;
    font-size: 0.9rem !important;
  }
  .event-detail-main-card {
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
  }
  .event-detail-section {
    margin-bottom: 24px !important;
  }
  .event-detail-section h2 {
    font-size: 1.05rem !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
  }
  .event-detail-section p, .event-detail-section li {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  /* ── 7. Admissions Listing ── */
  .admission-card-item {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) !important;
  }
  .admission-card-content {
    padding: 16px !important;
  }
  .admission-card-school {
    font-size: 1.05rem !important;
    margin-bottom: 6px !important;
  }
  .admission-card-badges-row {
    margin-bottom: 12px !important;
    gap: 6px !important;
  }
  .admission-card-badges-row .badge {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
  }
  .admission-card-content p {
    font-size: 0.82rem !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
  }
  .admission-detail-list {
    margin-bottom: 16px !important;
    padding-top: 10px !important;
    gap: 8px !important;
  }
  .admission-detail-item {
    font-size: 0.8rem !important;
  }
  .admission-card-content > div[style*="display: flex"] {
    flex-direction: row !important;
    gap: 8px !important;
  }
  .admission-card-content > div[style*="display: flex"] a {
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }

  /* ── 8. Admissions Application (`apply-admission.html`) ── */
  .apply-container {
    margin: 12px auto 30px auto !important;
    padding: 0 10px !important;
  }
  .apply-card {
    border-radius: var(--radius-md) !important;
  }
  .apply-header {
    padding: 24px 16px !important;
  }
  .apply-header h1 {
    font-size: 1.4rem !important;
  }
  .apply-header p {
    font-size: 0.85rem !important;
  }
  .apply-progress-bar {
    padding: 12px 10px !important;
  }
  .progress-step {
    gap: 4px !important;
  }
  .progress-step::after {
    top: 11px !important;
  }
  .step-number {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.7rem !important;
    border-width: 1.5px !important;
  }
  .step-label {
    font-size: 0.6rem !important;
    letter-spacing: 0 !important;
  }
  .apply-form-body {
    padding: 20px 16px !important;
  }
  .apply-form-body h2 {
    font-size: 1.05rem !important;
    margin-bottom: 16px !important;
  }
  .apply-form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }
  .apply-form-group label {
    font-size: 0.82rem !important;
  }
  .apply-form-group input,
  .apply-form-group select,
  .apply-form-group textarea {
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
  }
  .apply-actions {
    margin-top: 20px !important;
    padding-top: 16px !important;
  }
  .apply-actions button {
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
  }
  .apply-success {
    padding: 40px 16px !important;
  }
  .success-badge {
    width: 56px !important;
    height: 56px !important;
    font-size: 2rem !important;
    margin-bottom: 16px !important;
  }
  .apply-success h2 {
    font-size: 1.30rem !important;
  }
  .apply-success p {
    font-size: 0.82rem !important;
    margin-bottom: 24px !important;
  }
  .apply-success div {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .apply-success div a {
    width: 100% !important;
    padding: 10px !important;
    font-size: 0.88rem !important;
    text-align: center !important;
  }
}

/* Landscape / Smaller Viewport Adjustments (<= 414px) */
@media (max-width: 414px) {
  .admission-card-content > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .admission-card-content > div[style*="display: flex"] a {
    width: 100% !important;
  }
  .step-label {
    display: none !important; /* Hide progress labels on small screens to save space */
  }
}

/* ── Phase 5: Messaging, Notifications & Networking Mobile Optimizations (max-width: 768px) ── */
@media (max-width: 768px) {
  /* Global mobile typography adjustments */
  .net-hero-content h1 {
    font-size: 1.5rem !important; /* 24px max */
    line-height: 1.3 !important;
  }
  
  .net-hero-content p {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
  }

  .connections-inbox-section h2,
  .net-main h2 {
    font-size: 1.2rem !important; /* 19.2px max */
  }

  /* 🔔 Notification Dropdown mobile styles */
  .notif-panel {
    position: fixed !important;
    top: 60px !important;
    left: 4% !important;
    right: 4% !important;
    width: 92vw !important;
    max-height: calc(100vh - 140px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-md) !important;
    z-index: 10001 !important;
  }

  .notif-panel-header {
    padding: 10px 14px 8px !important;
  }

  .notif-panel-title {
    font-size: 0.9rem !important;
  }

  .notif-mark-all-btn {
    padding: 3px 6px !important;
    font-size: 0.7rem !important;
  }

  .notif-item {
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  .notif-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 0.95rem !important;
  }

  .notif-content {
    min-width: 0 !important;
  }

  .notif-title {
    font-size: 0.78rem !important;
  }

  .notif-body {
    font-size: 0.7rem !important;
    margin-top: 1px !important;
  }

  .notif-time {
    font-size: 0.65rem !important;
    margin-top: 2px !important;
  }

  /* 🤝 Networking & User Discovery Cards mobile styles */
  .net-hero {
    padding: 30px 0 20px !important;
  }

  .net-search-wrapper {
    margin-top: 14px !important;
  }

  .net-search-bar {
    padding: 8px 12px !important;
  }

  .net-search-bar input {
    font-size: 0.85rem !important;
  }

  .net-filter-tabs {
    gap: 6px !important;
    padding-bottom: 2px !important;
    margin-bottom: 16px !important;
  }

  .net-tab {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    height: 32px !important;
  }

  .net-tab svg {
    width: 14px !important;
    height: 14px !important;
  }

  .net-results-bar {
    margin-bottom: 12px !important;
    font-size: 0.78rem !important;
  }

  .net-card {
    border-radius: 10px !important;
  }

  .net-card-banner {
    height: 0 !important;
    display: none !important;
  }

  .net-card-avatar-img,
  .net-card-avatar-placeholder {
    width: 40px !important;
    height: 40px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    border-width: 2px !important;
  }

  .net-card-body {
    padding: 2px 6px 2px !important;
  }

  .net-card-name {
    font-size: 0.76rem !important;
    margin-bottom: 1px !important;
  }

  .net-card-type-badge {
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
    margin-bottom: 6px !important;
  }

  .net-card-school {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }

  .net-card-bio {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
  }

  .net-card-skills {
    gap: 4px !important;
    margin-bottom: 2px !important;
  }

  .net-skill-chip {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }

  .net-card-footer {
    padding: 0 6px 6px !important;
    gap: 4px !important;
    border-top: none !important;
  }

  /* Compact button row on cards */
  .net-card-footer .btn-follow,
  .net-card-footer .btn-following,
  .net-card-footer .btn-connect,
  .net-card-footer .btn-requested,
  .net-card-footer .btn-connected,
  .net-card-footer .btn-view-profile {
    font-size: 0.68rem !important;
    padding: 0 8px !important;
    height: 26px !important;
    max-height: 26px !important;
    min-height: 0 !important;
    border-radius: 9999px !important;
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }

  .net-card-footer .btn-follow svg,
  .net-card-footer .btn-following svg,
  .net-card-footer .btn-connect svg,
  .net-card-footer .btn-requested svg,
  .net-card-footer .btn-connected svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* 🤝 Connection Requests list mobile adjustments */
  .connections-inbox-section {
    padding: 14px !important;
    margin-bottom: 20px !important;
  }

  .connections-inbox-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .connection-request-card {
    padding: 10px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .connection-request-info {
    align-self: flex-start !important;
    width: 100% !important;
  }

  .connection-request-avatar {
    width: 40px !important;
    height: 40px !important;
  }

  .connection-request-details h4 {
    font-size: 0.88rem !important;
  }

  .connection-request-details p {
    font-size: 0.75rem !important;
  }

  .connection-request-actions {
    display: flex !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .connection-request-actions button {
    flex: 1 !important;
    font-size: 0.75rem !important;
    padding: 8px 10px !important;
    height: 32px !important;
    border-radius: var(--radius-sm) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ====================================================================
   PHASE 1: HOMEPAGE FEED MOBILE POLISH
   ==================================================================== */

@media (max-width: 768px) {
  /* ── 1. Header Navigation & Redundant Toggle ── */
  .mobile-toggle {
    display: none !important;
  }

  .header-nav {
    display: block !important;
  }

  .header-nav .nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  /* Hide other desktop links except notifications and guest Sign In */
  .header-nav .nav-list > li {
    display: none !important;
  }

  .header-nav .nav-list > #nav-notif-item {
    display: block !important;
  }

  /* Style notifications bell for mobile header */
  .notif-bell-btn {
    background: none !important;
    border: none !important;
    padding: 6px !important;
    color: var(--text-main) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative !important;
  }

  .notif-bell-btn span {
    display: none !important;
  }

  .notif-bell-btn svg {
    width: 22px !important;
    height: 22px !important;
    color: var(--text-main) !important;
    stroke-width: 2px !important;
  }

  /* Style compact Sign In button for guest header */
  .header-nav .nav-list > li.guest-only:first-of-type {
    display: inline-flex !important;
  }

  .btn-signin {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    min-height: auto !important;
    max-height: none !important;
    border: 1px solid var(--primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
  }

  .btn-signin svg {
    display: none !important;
  }

  /* ── 2. Safe Area & Bottom Nav Heights ── */
  .mobile-bottom-nav.visible {
    padding-bottom: env(safe-area-inset-bottom, 8px) !important;
    height: calc(56px + env(safe-area-inset-bottom, 8px)) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
  }

  body.has-bottom-nav {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 8px)) !important;
  }

  /* ── 3. Footer Optimization ── */
  footer#about {
    padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 8px)) 0 !important;
  }

  footer#about .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }

  footer#about .footer-links {
    display: none !important; /* Hide platform/resources/company links */
  }

  footer#about .footer-brand {
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  footer#about .footer-brand p {
    font-size: 0.82rem !important;
    margin: 10px auto 0 auto !important;
    max-width: 90% !important;
  }

  footer#about .footer-socials {
    justify-content: center !important;
    margin-top: 12px !important;
  }

  footer#about .footer-newsletter {
    border-top: 1px solid var(--border-color) !important;
    padding-top: 16px !important;
    text-align: center !important;
  }

  footer#about .footer-newsletter p {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
  }

  footer#about .newsletter-form {
    flex-direction: column !important;
    gap: 8px !important;
  }

  footer#about .newsletter-form input {
    height: 40px !important;
    min-height: 40px !important;
    text-align: center !important;
  }

  footer#about .newsletter-form button {
    height: 40px !important;
    min-height: 40px !important;
  }

  footer#about .footer-bottom {
    border-top: 1px solid var(--border-color) !important;
    padding-top: 16px !important;
    gap: 12px !important;
  }

  footer#about .footer-bottom-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* ── 4. Post Composer (Share Box) Quick Actions ── */
  .create-post-actions-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    padding: 8px 6px !important;
  }

  .btn-share-action {
    flex: 1 !important;
    padding: 6px 2px !important;
    font-size: 0.75rem !important;
    min-height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    border-radius: var(--radius-sm) !important;
    border: none !important;
    background: transparent !important;
  }

  .btn-share-action .action-icon {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  .btn-share-action .action-text {
    font-size: 0.68rem !important;
    line-height: 1 !important;
  }

  /* ── 5. Post Type Badge Overlap Fix ── */
  .feed-post-card {
    position: relative !important;
    padding: 12px 14px !important;
    margin-bottom: 8px !important;
    border-radius: var(--radius-sm) !important;
  }

  .post-header {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding-right: 0 !important;
  }

  .post-meta-info {
    flex: 1 !important;
    min-width: 0 !important; /* allows text truncation/wrapping inside flex */
  }

  .post-author-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-right: 75px !important; /* make room for absolute badge */
  }

  .post-author-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 140px !important;
  }

  .post-author-role {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
  }

  .post-author-headline {
    font-size: 0.76rem !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
    color: var(--text-muted) !important;
  }

  .post-time {
    font-size: 0.7rem !important;
    margin-top: 2px !important;
  }

  .post-type-badge {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    font-size: 0.68rem !important;
    padding: 3px 6px !important;
    border-radius: var(--radius-sm) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  .post-type-badge .badge-icon {
    font-size: 0.75rem !important;
  }

  /* ── 6. Post Body Polish ── */
  .post-body {
    margin-top: 10px !important;
  }

  .post-text-content {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    color: var(--text-main) !important;
  }

  /* ── 7. Post Stats and Action Buttons ── */
  .post-stats-row {
    padding: 8px 0 !important;
    margin-bottom: 4px !important;
    font-size: 0.74rem !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  .post-actions-row {
    padding: 2px 0 !important;
    gap: 2px !important;
  }

  .btn-post-action {
    flex: 1 !important;
    padding: 8px 4px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    min-height: auto !important;
    max-height: none !important;
    gap: 6px !important;
    border-radius: var(--radius-sm) !important;
  }

  .btn-post-action svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* ── 8. Comment Section Optimization ── */
  .post-comments-container {
    padding-top: 10px !important;
  }

  .post-comment-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .comment-input-avatar,
  .comment-input-avatar-placeholder {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .comment-input-wrapper {
    flex: 1 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .comment-input-field {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 36px 6px 12px !important;
    font-size: 0.82rem !important;
    border-radius: 17px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-light) !important;
  }

  .btn-comment-submit {
    position: absolute !important;
    right: 4px !important;
    width: 28px !important;
    height: 28px !important;
    background: none !important;
    border: none !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  .btn-comment-submit svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* ── 9. Comments List Typography ── */
  .post-comments-list {
    gap: 8px !important;
  }

  .comment-item {
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .comment-item-avatar,
  .comment-item-avatar-placeholder {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    font-size: 0.72rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .comment-item-content-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-light) !important;
  }

  .comment-item-header {
    margin-bottom: 2px !important;
    gap: 8px !important;
  }

  .comment-item-author-name {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
  }

  .comment-item-author-role {
    font-size: 0.6rem !important;
    padding: 0px 4px !important;
  }

  .comment-item-time {
    font-size: 0.65rem !important;
  }

  .comment-item-text {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
    color: var(--text-main) !important;
  }
}

/* ====================================================================
   PHASE 1: HOME FEED MOBILE REDESIGN (Inspire by Reference Screenshot)
   ==================================================================== */



.mobile-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}
.mobile-search-input {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 12px 6px 36px !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid var(--border-color) !important;
  background-color: var(--bg-light) !important;
  font-size: 0.85rem !important;
  outline: none !important;
}

@media (max-width: 767px) {
  /* ── 1. Sticky Mobile Header – 60px, balanced spacing ── */
  header {
    height: 60px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  }
  
  header .container {
    padding-left: 16px !important;
    padding-right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    gap: 0 !important;
  }

  /* Hide redundant hamburger menu icon */
  .mobile-toggle {
    display: none !important;
  }

  /* Show only the desired nav actions in header on mobile */
  .header-nav {
    display: block !important;
  }
  
  .header-nav .nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2px !important;   /* tight – touch-target size handles visual spacing */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Hide items that are in bottom nav bar */
  .header-nav .nav-list > li {
    display: none !important;
  }
  
  /* Show specific items in mobile top header */
  .header-nav .nav-list > .mobile-search-item,
  .header-nav .nav-list > .nav-msg-item,
  .header-nav .nav-list > .nav-notif-item,
  .header-nav .nav-list > .nav-me-item,
  .header-nav .nav-list > .nav-signin-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Header action buttons – 44×44 minimum touch targets ── */
  .mobile-search-btn,
  .nav-msg-item a,
  .notif-bell-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-height: none !important;
    color: #4b5563 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background-color 0.15s ease !important;
    text-decoration: none !important;
  }
  
  .mobile-search-btn:hover,
  .nav-msg-item a:hover,
  .notif-bell-btn:hover {
    background-color: rgba(15, 23, 42, 0.05) !important;
  }

  .mobile-search-btn svg,
  .nav-msg-item a svg,
  .notif-bell-btn svg {
    width: 22px !important;
    height: 22px !important;
    color: #374151 !important;
    stroke: #374151 !important;
    stroke-width: 2px !important;
    flex-shrink: 0 !important;
  }
  
  .notif-bell-btn span,
  .nav-msg-item a span {
    display: none !important; /* Hide label text */
  }

  /* Me Profile Avatar Button – 44×44 touch target with larger avatar ── */
  .nav-me-btn {
    padding: 0 !important;
    background: none !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: background-color 0.15s ease !important;
  }
  .nav-me-btn:hover {
    background-color: rgba(15, 23, 42, 0.05) !important;
  }
  .nav-me-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
  }
  .nav-me-label-row {
    display: none !important; /* Hide me text / down icon */
  }

  /* ── Mobile Viewport Safety ── */
  .feed-container,
  .feed-layout-grid,
  .feed-main-content {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ── 2. Pill-style Feed Filter Tabs ── */
  .feed-filter-tabs {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    border-bottom: none !important;
    background-color: var(--white) !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }
  .feed-filter-tabs::-webkit-scrollbar {
    display: none !important;
  }
  .feed-filter-tab {
    display: inline-block !important; /* Shows schools/events/opps */
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    background-color: #f1f5f9 !important;
    border: none !important;
    border-radius: 20px !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
  }
  .feed-filter-tab.active {
    color: var(--white) !important;
    background-color: var(--primary) !important;
    border-bottom: none !important;
  }

  /* ── 3. Post Composer (Share Box) Redesign ── */
  .create-post-box {
    background-color: var(--white) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .create-post-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  }
  .share-box-avatar,
  .share-box-avatar-placeholder {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }
  .btn-start-post {
    flex: 1 !important;
    height: 36px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-color) !important;
    background-color: #f8fafc !important;
    padding: 0 16px !important;
    text-align: left !important;
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
  }
  
  /* composer actions row as a horizontal scrollable row */
  .create-post-actions-row {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding: 8px 0 4px 0 !important;
  }
  .create-post-actions-row::-webkit-scrollbar {
    display: none !important;
  }
  
  .btn-share-action {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 6px 14px !important;
    background-color: #f1f5f9 !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 100px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
  }
  .btn-share-action:active {
    background-color: #e2e8f0 !important;
    transform: scale(0.97) !important;
  }
  .btn-share-action .action-icon {
    font-size: 1.05rem !important;
    margin: 0 !important;
  }
  .btn-share-action .action-text {
    font-size: 0.78rem !important;
    font-weight: 550 !important;
    line-height: normal !important;
  }

  /* ── 4. Premium Feed Cards Redesign ── */
  .feed-post-card {
    background-color: var(--white) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 14px !important;
    margin-bottom: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .post-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .post-meta-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .post-author-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    padding-right: 28px !important;
  }

  .post-author-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* More Menu Ellipsis button placement */
  .post-more-btn {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .post-more-btn:hover {
    background-color: #f1f5f9 !important;
  }

  /* Post Type Badge placement on mobile cards */
  .post-type-badge {
    display: none !important;
  }

  /* Dynamic post media styles (rounded photo attachments) */
  .post-media-container {
    margin-top: 12px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  .post-media-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Premium Link/Document Preview Card ("Ivy League Blueprint") styling */
  .post-link-preview-card {
    margin-top: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    background-color: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }
  .link-preview-left-accent {
    width: 72px !important;
    background-color: var(--primary) !important;
    color: var(--white) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    flex-shrink: 0 !important;
  }
  .link-preview-badge-value {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }
  .link-preview-badge-label {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin-top: 2px !important;
  }
  .link-preview-details {
    padding: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .link-preview-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin: 0 0 2px 0 !important;
  }
  .link-preview-desc {
    font-size: 0.74rem !important;
    color: var(--text-muted) !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
  }
  .link-preview-cta {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
  }

  /* User Badges as sleek professional chips */
  .post-author-role {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    display: inline-block !important;
  }
  .post-author-role.student {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
  }
  .post-author-role.school_representative,
  .post-author-role.school_admin {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
  }
  .post-author-role.teacher {
    background-color: #f3e8ff !important;
    color: #6b21a8 !important;
  }
  .post-author-role.alumni {
    background-color: #dcfce7 !important;
    color: #15803d !important;
  }

  /* ── 5. Reactions & Comments Stats ── */
  .post-stats-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 6px !important;
  }
  .post-stats-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .reactions-icons-group {
    display: flex !important;
    align-items: center !important;
  }
  .reaction-badge-icon {
    font-size: 0.82rem !important;
    margin-right: -4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    border: 1px solid var(--white) !important;
    background-color: var(--white) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    position: relative !important;
  }
  .reaction-badge-icon:nth-child(1) { z-index: 3; }
  .reaction-badge-icon:nth-child(2) { z-index: 2; }
  .reaction-badge-icon:nth-child(3) { z-index: 1; }
  
  .likes-count-display {
    margin-left: 6px !important;
    font-weight: 500 !important;
  }
  .post-stats-right {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
  }
  .comments-count-display,
  .shares-count-display {
    font-weight: 500 !important;
  }

  /* ── 6. Feed Card Actions Row ── */
  .post-actions-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 4px 0 !important;
    gap: 4px !important;
  }
  .btn-post-action {
    flex: 1 !important;
    padding: 10px 8px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #5e6d82 !important;
    background: none !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
  }
  .btn-post-action:hover {
    background-color: #f8fafc !important;
  }
  .btn-post-action svg {
    width: 18px !important;
    height: 18px !important;
    color: #5e6d82 !important;
  }
  .btn-post-action.liked {
    color: var(--primary) !important;
  }
  .btn-post-action.liked svg {
    color: var(--primary) !important;
    fill: var(--primary-light) !important;
  }
  
  /* Spacing for remaining actions */
  .btn-post-action span {
    font-size: 0.82rem !important;
  }

  /* ── 7. Floating Bottom Navigation Post Button ── */
  .mobile-bottom-nav {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05) !important;
    padding-bottom: env(safe-area-inset-bottom, 8px) !important;
    height: calc(56px + env(safe-area-inset-bottom, 8px)) !important;
  }
  .mobile-post-btn-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background-color: var(--primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3) !important;
    margin-top: -8px !important;
    transition: transform 0.2s ease !important;
  }
  .mobile-post-btn-circle:active {
    transform: scale(0.92) !important;
  }
  .mobile-post-btn-circle svg {
    color: var(--white) !important;
    stroke: var(--white) !important;
    width: 20px !important;
    height: 20px !important;
  }
  .mobile-nav-item#mobile-nav-post span {
    margin-top: 4px !important;
  }

  /* ── Mobile-Specific Profile Menu ── */
  .nav-me-item {
    position: relative !important;
  }
  
  .me-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: -4px !important;
    left: auto !important;
    width: 260px !important;
    max-width: 280px !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 16px -6px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-8px) scale(0.95) !important;
    transform-origin: top right !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s,
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
  }

  .me-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
  }

  /* User Section */
  .me-dropdown-header {
    padding: 12px 14px !important;
    gap: 10px !important;
    background-color: #fafbfc !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    display: flex !important;
    align-items: center !important;
  }

  .me-dropdown-avatar-wrapper {
    position: relative !important;
    flex-shrink: 0 !important;
  }

  .me-dropdown-avatar {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .me-dropdown-status-dot {
    width: 9px !important;
    height: 9px !important;
    bottom: 0px !important;
    right: 0px !important;
    border-width: 1.5px !important;
  }

  .me-dropdown-user-details {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }

  .me-dropdown-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  .me-dropdown-name {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
  }

  .me-dropdown-role {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    margin-top: 1px !important;
  }

  /* Menu Items */
  .me-dropdown-menu {
    padding: 5px !important;
    gap: 1px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .me-menu-item {
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    gap: 10px !important;
    color: #4b5563 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
  }

  .me-menu-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--text-main) !important;
  }

  .me-menu-icon {
    width: 16px !important;
    height: 16px !important;
    color: #6b7280 !important;
  }

  /* Footer */
  .me-dropdown-footer {
    padding: 5px !important;
    background-color: #f9fafb !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  }

  .me-dropdown-signout {
    padding: 8px 10px !important;
    font-size: 0.82rem !important;
    gap: 10px !important;
    color: #ef4444 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
  }

  .me-dropdown-signout:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
  }

  .me-signout-icon {
    width: 16px !important;
    height: 16px !important;
    color: #ef4444 !important;
  }

  /* ── Mobile Avatar Sizing & Distortion Prevention ── */
  .post-avatar-link {
    width: 42px !important;
    height: 42px !important;
  }

  .share-box-avatar,
  .share-box-avatar-placeholder {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover !important;
  }

  .comment-input-avatar,
  .comment-input-avatar-placeholder {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover !important;
  }

  .comment-item-avatar,
  .comment-item-avatar-placeholder {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover !important;
  }

  .net-card-avatar-link {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }
  
  .net-card-avatar-img,
  .net-card-avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .connection-request-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    object-fit: cover !important;
  }
}

/* Landscape / Small Phone tweaks */
@media (max-width: 480px) {
  .post-author-row {
    padding-right: 28px !important;
  }
  .post-author-name {
    max-width: 90px !important;
  }
  .btn-post-action span {
    font-size: 0.7rem !important;
  }
}

/* --- Post Dropdown Menu Options --- */
.post-more-dropdown {
  position: absolute;
  top: 36px;
  right: 0;
  width: 160px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  overflow: hidden;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.post-more-dropdown.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: var(--light-bg);
  color: var(--text-main);
}

.dropdown-icon {
  font-size: 1rem;
}

/* ====================================================================
   GLOBAL MOBILE NAVIGATION — Dark Floating Pill
   Injected by mobile-nav.js on all pages except admin/login/dashboard
   ====================================================================
   Desktop: hidden
   Mobile (≤768px): visible as a fixed dark navy floating pill
   ==================================================================== */

/* Hidden by default on all screen sizes */
.global-mobile-nav {
  display: none;
}

/* ── Show on mobile ── */
@media (max-width: 768px) {

  /* Body padding so content isn't hidden behind nav */
  body.has-global-mobile-nav {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* ── Pill Container ── */
  .global-mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 400px;
    height: 60px;
    background-color: #0f172a;
    border-radius: 100px;
    align-items: center;
    justify-content: space-around;
    z-index: 10000;
    padding: 0 8px;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.28),
      0 2px 8px rgba(0, 0, 0, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.06);
    /* Safe-area inset for notched phones */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* ── Nav Item (base) ── */
  .gmn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    gap: 3px;
    flex: 1;
    min-height: 48px;
    min-width: 44px;
    border-radius: 100px;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .gmn-item svg {
    width: 22px;
    height: 22px;
    stroke: #94a3b8;
    transition: stroke 0.2s ease;
    flex-shrink: 0;
  }

  /* ── Active State ── */
  .gmn-item.active {
    color: #ffffff;
  }

  .gmn-item.active svg {
    stroke: #ffffff;
  }

  /* ── Hover feedback ── */
  .gmn-item:hover:not(.gmn-post-item) {
    color: #cbd5e1;
  }

  .gmn-item:hover:not(.gmn-post-item) svg {
    stroke: #cbd5e1;
  }

  /* ── Center Elevated Post Button ── */
  .gmn-post-item {
    color: #94a3b8;
    position: relative;
  }

  .gmn-post-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #4f8ef7, #2563eb);
    border-radius: 50%;
    box-shadow:
      0 4px 14px rgba(37, 99, 235, 0.5),
      0 0 0 3px rgba(37, 99, 235, 0.15);
    margin-top: -16px;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.18s ease;
    flex-shrink: 0;
  }

  .gmn-post-circle svg {
    stroke: #ffffff !important;
    width: 20px !important;
    height: 20px !important;
  }

  .gmn-post-item:active .gmn-post-circle {
    transform: scale(0.92);
    box-shadow:
      0 2px 8px rgba(37, 99, 235, 0.4),
      0 0 0 3px rgba(37, 99, 235, 0.1);
  }

  .gmn-post-item span {
    margin-top: 2px;
    font-size: 0.6rem;
    color: #94a3b8;
  }

} /* end @media (max-width: 768px) */

/* ── 480px: Slightly tighter pill ── */
@media (max-width: 480px) {
  .global-mobile-nav {
    width: calc(100% - 24px);
    bottom: 14px;
    height: 58px;
  }

  .gmn-item {
    font-size: 0.58rem;
  }

  .gmn-item svg {
    width: 20px;
    height: 20px;
  }

  .gmn-post-circle {
    width: 40px;
    height: 40px;
    margin-top: -14px;
  }
}

/* ── 320px: Smallest phone support ── */
@media (max-width: 320px) {
  .global-mobile-nav {
    width: calc(100% - 16px);
    bottom: 10px;
    height: 56px;
    padding: 0 4px;
  }

  .gmn-item {
    font-size: 0.55rem;
    min-width: 36px;
  }

  .gmn-item svg {
    width: 18px;
    height: 18px;
  }

  .gmn-post-circle {
    width: 36px;
    height: 36px;
    margin-top: -12px;
  }
}

/* ==========================================================================
   LinkedIn-Style Redesigned Networking Styles
   ========================================================================== */

/* Layout Grid */
.net-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

@media (max-width: 992px) {
  .net-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .net-sidebar {
    position: static;
  }
}

/* Base Cards */
.manage-network-card,
.invitations-card,
.suggestions-card,
.schools-suggestion-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.manage-network-card:hover,
.invitations-card:hover,
.suggestions-card:hover,
.schools-suggestion-card:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* 1. Manage My Network Card */
.manage-network-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: var(--white);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.manage-network-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.manage-network-header .chevron-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.manage-network-content {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand / Collapse States */
.manage-network-card.collapsed .manage-network-content {
  max-height: 0;
}

.manage-network-card.expanded .manage-network-content {
  max-height: 400px;
}

.manage-network-card.collapsed .chevron-icon {
  transform: rotate(0deg);
}

.manage-network-card.expanded .chevron-icon {
  transform: rotate(180deg);
}

.manage-network-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: var(--transition-fast);
}

.manage-network-item:last-child {
  border-bottom: none;
}

.manage-network-item:hover,
.manage-network-item.active {
  background-color: var(--light-bg);
  color: var(--primary);
}

.manage-network-item.active .manage-item-left {
  color: var(--primary);
}

.manage-network-item.active .manage-item-left svg {
  color: var(--primary);
}

.manage-network-item.active .manage-item-badge {
  background: var(--primary-light);
  color: var(--primary);
}

.manage-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.92rem;
}

.manage-network-item:hover .manage-item-left {
  color: var(--primary);
}

.manage-item-left svg {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.manage-network-item:hover .manage-item-left svg {
  color: var(--primary);
}

.manage-item-badge {
  background: var(--light-bg);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.manage-network-item:hover .manage-item-badge {
  background: var(--primary-light);
  color: var(--primary);
}

/* 2. Invitations Section Card */
.invitations-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.invitations-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-bg);
}

.btn-view-all-invitations {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-view-all-invitations:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.invitations-list {
  display: flex;
  flex-direction: column;
}

.invitation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: var(--transition-fast);
  gap: 16px;
}

.invitation-item:last-child {
  border-bottom: none;
}

.invitation-item:hover {
  background-color: hsla(217, 90%, 60%, 0.01);
}

.invitation-main-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.invitation-avatar-link {
  flex-shrink: 0;
}

.invitation-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.invitation-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.invitation-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.invitation-name {
  font-weight: 700;
  color: var(--dark-bg);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.invitation-name:hover {
  color: var(--primary);
}

.invitation-headline {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.invitation-mutual {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 2px;
}

.invitation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.invitation-actions button {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reject-request {
  background: transparent;
  border: 1.5px solid var(--text-muted) !important;
  color: var(--text-muted) !important;
}

.btn-reject-request:hover {
  background-color: var(--light-bg);
  border-color: var(--text-main) !important;
  color: var(--text-main) !important;
}

.btn-accept-request {
  background: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  color: var(--white) !important;
}

.btn-accept-request:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 200, 0.2);
}

/* Mobile optimizations for invitations */
@media (max-width: 576px) {
  .invitation-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .invitation-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* 3. Suggestions Section & Cards (People You May Know) */
.suggestions-card {
  padding: 20px;
}

.suggestions-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.suggestions-header-row h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 0;
}

.btn-see-all-suggestions {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-see-all-suggestions:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Update Suggestions Grid */
.suggestions-card .net-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 16px !important;
}

@media (max-width: 768px) {
  /* 1. Page Spacing & Bottom Nav Offset */
  .net-main {
    padding: 8px 0 100px !important;
  }
  
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .net-layout-grid {
    margin-top: 0 !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  .net-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  .net-search-wrapper {
    margin-bottom: 8px !important;
  }
  
  .manage-network-card,
  .invitations-card,
  .suggestions-card,
  .schools-suggestion-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .suggestions-card {
    padding: 12px !important;
    margin-bottom: 8px !important;
  }

  .schools-suggestion-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .suggested-school-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .suggestions-header-row {
    margin-bottom: 6px !important;
  }
  
  .suggestions-header-row h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
  }
  
  .net-filter-tabs {
    margin-bottom: 6px !important;
    gap: 4px !important;
  }

  .net-tab {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
    height: 28px !important;
  }

  .net-tab svg {
    width: 12px !important;
    height: 12px !important;
  }
  
  .net-results-bar {
    margin-bottom: 6px !important;
  }

  #net-results-count {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
  }

  /* 2. 2-Column Mobile Layout */
  .suggestions-card .net-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* 3. Ultra-Compact Suggestion Cards */
  .net-person-card {
    border-radius: 10px !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Hide colored banner to reduce card height */
  .net-card-banner {
    display: none !important;
  }
  
  .net-card-avatar-link {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  
  .net-card-avatar-img,
  .net-card-avatar-placeholder {
    width: 40px !important;
    height: 40px !important;
    border: 2px solid var(--white) !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
  }
  
  .net-card-body {
    padding: 2px 6px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
    flex-grow: 1 !important;
  }
  
  .net-card-name {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin-bottom: 1px !important;
    margin-top: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .net-card-headline {
    font-size: 0.65rem !important;
    line-height: 1.15 !important;
    height: auto !important;
    max-height: 28px !important;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    color: var(--text-muted) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  
  .net-card-mutual {
    font-size: 0.6rem !important;
    font-weight: 500 !important;
    color: hsl(215, 15%, 52%) !important;
    margin-bottom: 2px !important;
    margin-top: auto !important;
  }

  .net-card-type-badge {
    font-size: 0.58rem !important;
    padding: 1px 6px !important;
    margin-bottom: 2px !important;
  }

  .net-card-school {
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
  }

  .net-card-bio {
    font-size: 0.65rem !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }

  .net-card-skills {
    gap: 2px !important;
    margin-bottom: 2px !important;
  }

  .net-skill-chip {
    font-size: 0.58rem !important;
    padding: 1px 4px !important;
  }
  
  .net-card-footer {
    padding: 0 6px 6px !important;
    border-top: none !important;
  }
  
  /* 4. Hide Follow on mobile, compact Connect */
  .net-person-card .btn-follow,
  .net-person-card .btn-following {
    display: none !important;
  }
  
  .suggestion-actions-row {
    width: 100% !important;
    display: flex !important;
  }
  
  .suggestion-actions-row button {
    height: 26px !important;
    width: 100% !important;
    font-size: 0.68rem !important;
    padding: 0 6px !important;
    flex: 1 1 100% !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
  }
  
  .suggestion-actions-row .btn-connect {
    border: 1px solid var(--primary) !important;
    background: var(--primary) !important;
    color: var(--white) !important;
  }
  
  .suggestion-actions-row .btn-connect:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
  }
  
  .suggestion-actions-row .btn-requested {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: var(--text-main) !important;
    pointer-events: none !important;
    box-shadow: none !important;
  }
  
  .suggestion-actions-row .btn-connected {
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary) !important;
  }

  /* 5. Compact View Profile button for guests */
  .net-card-footer .btn-view-profile {
    font-size: 0.68rem !important;
    padding: 4px 8px !important;
    height: 26px !important;
    width: 100% !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* --- Mobile controls row (compact 44px) --- */
  .mobile-controls-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
    margin-top: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .mobile-search-bar-container {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: var(--white) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
    padding: 2px 10px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    position: relative !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .mobile-search-bar-container input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 0.82rem !important;
    color: var(--text-main) !important;
  }
  .mobile-search-bar-container input::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
  }
  .mob-search-icon {
    color: var(--text-muted) !important;
    flex-shrink: 0 !important;
    width: 14px !important;
    height: 14px !important;
  }
  .btn-clear-mobile-search {
    background: none !important;
    border: none !important;
    font-size: 1.1rem !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    flex-shrink: 0 !important;
  }

  /* Inline mobile search results */
  .mobile-inline-search-results {
    width: 100% !important;
    background: var(--white) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 8px !important;
    padding: 8px 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
  }
  .search-results-chips-row {
    display: flex !important;
    gap: 4px !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    white-space: nowrap !important;
  }
  .search-results-chips-row::-webkit-scrollbar {
    display: none !important;
  }
  .search-results-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  .btn-mobile-network {
    flex: 0 0 44px !important;
    width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: var(--white) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    color: var(--text-main) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition-fast) !important;
    box-sizing: border-box !important;
  }
  .btn-mobile-network:hover {
    background: #f8fafc !important;
  }
  .btn-mobile-network svg {
    color: var(--text-main) !important;
    width: 14px !important;
    height: 14px !important;
  }
  .btn-mobile-network span {
    display: none !important;
  }

  /* Hide desktop sidebar & search on mobile */
  .net-sidebar,
  .net-search-wrapper {
    display: none !important;
  }
}

/* --- Mobile overlays styled globally for clean overlay stacking --- */
.mobile-network-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-network-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-network-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.15);
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.mobile-network-sheet.active {
  transform: translateY(0);
}
.mobile-sheet-header {
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
}
.mobile-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(15, 23, 42, 0.15);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.mobile-sheet-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.btn-close-sheet {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.mobile-sheet-content {
  overflow-y: auto;
  padding: 10px 20px 30px;
}
.mobile-network-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-network-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}
.mobile-network-item:hover,
.mobile-network-item:active {
  background: rgba(15, 23, 42, 0.04);
}
.mobile-network-item .item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
}
.mobile-network-item .item-left svg {
  color: var(--text-muted);
}
.mobile-network-item:hover .item-left svg {
  color: var(--primary);
}

.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100vw);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.mobile-search-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.btn-search-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.btn-search-back:active {
  background-color: rgba(15, 23, 42, 0.06);
}
.search-overlay-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-bg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 20px;
  padding: 6px 12px;
  height: 38px;
  position: relative;
}
.search-overlay-input-wrapper .search-icon {
  color: var(--text-muted);
}
.search-overlay-input-wrapper input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
}
.btn-clear-search {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}
.search-overlay-filters {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.search-overlay-filters::-webkit-scrollbar {
  display: none;
}
.search-filter-chip {
  background: var(--light-bg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-filter-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.search-overlay-results {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 80px;
}
.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}
.search-result-row:last-child {
  border-bottom: none;
}
.search-result-row .result-avatar-link {
  flex-shrink: 0;
  display: block;
}
.search-result-row .result-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.search-result-row .result-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}
.search-result-row .result-avatar-school {
  border-radius: var(--radius-sm);
  color: var(--white);
}
.search-result-row .result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.search-result-row .result-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.search-result-row .result-headline {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-row .result-subtext {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
.search-result-row .result-actions {
  flex-shrink: 0;
}
.search-result-row .result-actions button {
  height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  border: 1.5px solid var(--primary) !important;
  background: var(--primary) !important;
  color: var(--white) !important;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.search-result-row .result-actions button:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
.search-result-row .result-actions button.btn-connected {
  background: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  color: var(--primary) !important;
}
.search-result-row .result-actions button.btn-connected:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}
.search-result-row .result-actions button.btn-requested {
  background: #f3f4f6 !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-main) !important;
}
.search-result-row .result-actions button.btn-following {
  background: var(--light-bg) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-main) !important;
}

/* Global mobile-only element fallback definition */
.mobile-controls-row {
  display: none;
}

/* Suggestions Cards Redesign */
.net-person-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth) !important;
}

.net-person-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(0, 102, 200, 0.25) !important;
}



.net-card-headline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  margin-bottom: 6px;
  font-weight: 500;
}

.net-card-mutual {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
}

/* Action Rows for Cards */
.suggestion-actions-row {
  display: flex;
  gap: 6px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.suggestion-actions-row button {
  height: 34px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.suggestion-actions-row .btn-connect {
  flex: 2;
  background: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  color: var(--white) !important;
}

.suggestion-actions-row .btn-connect:hover {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: var(--white) !important;
}

.suggestion-actions-row .btn-follow {
  flex: 1.2;
  background: transparent;
  border: 1.5px solid var(--text-muted) !important;
  color: var(--text-muted) !important;
}

.suggestion-actions-row .btn-follow:hover {
  background-color: var(--light-bg) !important;
  border-color: var(--text-main) !important;
  color: var(--text-main) !important;
}

.suggestion-actions-row .btn-following {
  flex: 1.2;
  background: var(--light-bg) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.08) !important;
  color: var(--text-main) !important;
}

.suggestion-actions-row .btn-following:hover {
  border-color: hsl(0, 65%, 50%) !important;
  color: hsl(0, 65%, 50%) !important;
  background: hsla(0, 65%, 50%, 0.04) !important;
}

.btn-requested,
.suggestion-actions-row .btn-requested {
  flex: 2;
  height: 34px;
  border-radius: 9999px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: var(--text-main) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.suggestion-actions-row .btn-connected {
  flex: 2;
  background: var(--primary-light) !important;
  border: 1.5px solid var(--primary-light) !important;
  color: var(--primary) !important;
}

.suggestion-actions-row .btn-connected:hover {
  border-color: hsl(0, 65%, 50%) !important;
  color: hsl(0, 65%, 50%) !important;
  background: hsla(0, 65%, 50%, 0.04) !important;
}

.suggestion-actions-row .btn-connected:hover span {
  display: none;
}

.suggestion-actions-row .btn-connected:hover::after {
  content: 'Disconnect';
}

/* 4. Suggested Schools Section Card */
.schools-suggestion-card {
  padding: 20px;
}

.schools-suggestion-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 16px;
}

.schools-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

@media (max-width: 576px) {
  .schools-suggestion-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.suggested-school-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.suggested-school-card:hover {
  border-color: rgba(0, 102, 200, 0.2);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.suggested-school-card .school-logo-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.suggested-school-card .school-logo-box.bg-gradient-1 { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.suggested-school-card .school-logo-box.bg-gradient-2 { background: linear-gradient(135deg, #4E65FF, #92EFFD); }
.suggested-school-card .school-logo-box.bg-gradient-3 { background: linear-gradient(135deg, #11998E, #38EF7D); }
.suggested-school-card .school-logo-box.bg-gradient-4 { background: linear-gradient(135deg, #7F00FF, #E100FF); }
.suggested-school-card .school-logo-box.bg-gradient-5 { background: linear-gradient(135deg, #F9D423, #FF4E50); }

.suggested-school-card .school-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  overflow: hidden;
}

.suggested-school-card .school-name {
  font-weight: 700;
  color: var(--dark-bg);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggested-school-card .school-name:hover {
  color: var(--primary);
}

.suggested-school-card .school-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.suggested-school-card button {
  height: 30px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1.5px solid var(--primary) !important;
  background: transparent;
  color: var(--primary) !important;
  flex-shrink: 0;
}

.suggested-school-card button:hover {
  background-color: var(--primary-light) !important;
  color: var(--primary-hover) !important;
}

.suggested-school-card button.btn-following {
  border-color: rgba(15, 23, 42, 0.08) !important;
  background: var(--light-bg);
  color: var(--text-main) !important;
}

.suggested-school-card button.btn-following:hover {
  border-color: hsl(0, 65%, 50%) !important;
  color: hsl(0, 65%, 50%) !important;
  background: hsla(0, 65%, 50%, 0.04) !important;
}

.suggested-school-card button.btn-following:hover::after {
  content: '';
}

/* Custom Search overrides inside right column */
.net-search-wrapper {
  margin-bottom: 24px;
}

.net-search-bar {
  background: var(--white) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
}

.net-search-bar svg {
  color: var(--text-muted) !important;
}

.net-search-bar input {
  color: var(--text-main) !important;
}

.net-search-bar input::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

.net-search-bar:focus-within {
  background: var(--white) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px var(--primary-light) !important;
}

#cl-debug-block {
  display: none !important;
}

/* Network Page Mobile Header simplifications */
@media (max-width: 767px) {
  .page-networking .header-nav .nav-list > .nav-msg-item,
  .page-networking .header-nav .nav-list > .nav-notif-item {
    display: none !important;
  }
}

/* Global Mobile Footer Redesign (<768px) */
@media (max-width: 767px) {
  footer#about {
    padding: 24px 0 90px 0 !important; /* Top 24px, bottom 90px safe area clearance */
  }

  footer#about .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }

  /* 2. CampusLink Branding & Tagline */
  footer#about .footer-brand {
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }

  footer#about .footer-brand p {
    display: none !important; /* hide long branding paragraph */
  }

  footer#about .footer-brand::after {
    content: "Connect. Discover. Grow." !important;
    display: block !important;
    font-size: 0.85rem !important;
    color: #64748B !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
  }

  /* 3. Social Icons: Single Centered Row, Spacing and Order */
  footer#about .footer-socials {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important; /* reduced spacing between icons */
    margin-top: 8px !important;
  }

  /* Set order: LinkedIn, Instagram, X */
  footer#about .footer-socials a[aria-label="LinkedIn"] {
    order: 1 !important;
  }
  footer#about .footer-socials a[aria-label="Instagram"] {
    order: 2 !important;
  }
  footer#about .footer-socials a[aria-label="Twitter"] {
    order: 3 !important; /* Twitter represents X */
  }

  footer#about .footer-social-icon {
    width: 32px !important;
    height: 32px !important;
  }

  /* 4. Hide Bulky Link Columns */
  footer#about .footer-links {
    display: none !important;
  }

  /* 5. Newsletter Section Layout */
  footer#about .footer-newsletter {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  footer#about .footer-newsletter h4 {
    font-size: 0 !important; /* hide original text */
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-bottom: 10px !important;
  }

  footer#about .footer-newsletter h4::after {
    content: "Newsletter" !important;
    font-size: 0.9rem !important; /* reduced heading size */
    font-weight: 700 !important;
    color: var(--white) !important;
    display: block !important;
  }

  footer#about .footer-newsletter p {
    display: none !important; /* hide long newsletter description */
  }

  footer#about .newsletter-form {
    display: flex !important;
    flex-direction: row !important; /* single horizontal row */
    gap: 8px !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    align-items: center !important;
  }

  footer#about .newsletter-form input {
    flex: 1 !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-sm) !important;
  }

  footer#about .newsletter-form button {
    flex-shrink: 0 !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-sm) !important;
    width: auto !important; /* prevent width 100% */
  }

  /* 6. Footer Bottom links & Copyright */
  footer#about .footer-bottom {
    padding-top: 16px !important;
    margin-top: 16px !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Replace original copyright */
  footer#about .footer-bottom p {
    font-size: 0 !important;
    margin: 0 !important;
  }

  footer#about .footer-bottom p::after {
    content: "© 2026 CampusLink" !important;
    font-size: 0.75rem !important; /* small secondary text */
    color: #64748B !important;
    display: block !important;
  }

  /* Replace bottom links text and format in one line: Privacy • Terms • Contact */
  footer#about .footer-bottom-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
  }

  footer#about .footer-bottom-links a {
    font-size: 0 !important; /* hide original text */
    color: #94A3B8 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: var(--transition-fast) !important;
  }

  footer#about .footer-bottom-links a:hover {
    color: var(--primary-light) !important;
    padding-left: 0 !important; /* clear desktop padding shift */
  }

  footer#about .footer-bottom-links a:nth-child(1)::after {
    content: "Privacy\00a0\00a0\2022\00a0\00a0" !important; /* Dot separator spacing */
    font-size: 0.8rem !important;
  }

  footer#about .footer-bottom-links a:nth-child(2)::after {
    content: "Terms\00a0\00a0\2022\00a0\00a0" !important; /* Dot separator spacing */
    font-size: 0.8rem !important;
  }

  footer#about .footer-bottom-links a:nth-child(3)::after {
    content: "Contact" !important;
    font-size: 0.8rem !important;
  }
}

/* --- Premium Class Selector Grid --- */
.classes-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 6px;
}

.classes-category-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.classes-category-group h5 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.class-chip {
  cursor: pointer;
  display: inline-block;
  margin: 0;
}

.class-chip input[type="checkbox"] {
  display: none !important; /* Hide original input */
}

.class-chip span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--white);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.class-chip input[type="checkbox"]:checked + span {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 102, 200, 0.1) 100%) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 102, 200, 0.12);
  transform: translateY(-1px);
}

.class-chip:hover span {
  border-color: var(--primary-light);
  color: var(--primary);
  background-color: rgba(0, 102, 200, 0.02);
}



