/* ============================================
   TRACER STUDY - SMOOTH MODERN LIGHT PORTAL
   ============================================ */

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

/* ---------- DESIGN TOKENS ---------- */
:root {
  --primary:        #2563eb;
  --primary-light:  #eff6ff;
  --primary-hover:  #1d4ed8;
  --accent:         #0ea5e9;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);

  --transition: all .2s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar .container { height: 64px; }

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.3px;
}

.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .85rem;
}

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600) !important;
  padding: .5rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}
.nav-link i { font-size: .85rem; }

.navbar-toggler {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .4rem .6rem;
}

/* ---------- DROPDOWN ---------- */
.dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  min-width: 200px;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--gray-100); color: var(--primary); }
.dropdown-item.text-danger:hover { background: #fef2f2; }
.dropdown-divider { margin: .25rem 0; border-color: var(--gray-200); }
.dropdown-header {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: .25rem .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Avatar */
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: none;
  cursor: pointer;
  font-size: .875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
}
.btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--gray-200);
}
.btn-light:hover {
  background: var(--gray-50);
  color: var(--primary-hover);
}

.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg { padding: .7rem 1.5rem; font-size: 1rem; }

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}
.card-static:hover { transform: none; box-shadow: var(--shadow-xs); }

.card-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
}
.card-body { padding: 1.25rem; }
.card-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: .75rem 1.25rem;
}

/* ---------- BADGES ---------- */
.badge {
  border-radius: 6px;
  font-weight: 600;
  font-size: .75rem;
  padding: .25rem .6rem;
  letter-spacing: .02em;
}

.badge-primary   { background: var(--primary-light); color: var(--primary); }
.badge-success   { background: #ecfdf5; color: #059669; }
.badge-warning   { background: #fffbeb; color: #d97706; }
.badge-danger    { background: #fef2f2; color: #dc2626; }
.badge-gray      { background: var(--gray-100); color: var(--gray-600); }

/* ---------- FORMS ---------- */
.form-control, .form-select {
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  font-size: .9rem;
  color: var(--gray-800);
  font-family: var(--font);
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}
.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.input-group-text {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-500);
  font-size: .9rem;
}

/* ---------- ALERTS ---------- */
.alert {
  border-radius: var(--radius);
  border: none;
  padding: .85rem 1.1rem;
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.alert-success   { background: #ecfdf5; color: #065f46; }
.alert-danger,
.alert-error     { background: #fef2f2; color: #7f1d1d; }
.alert-warning   { background: #fffbeb; color: #78350f; }
.alert-info      { background: var(--primary-light); color: #1e3a8a; }

/* ---------- HERO SECTION ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 60%, #312e81 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero-section .hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.5px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--gray-200);
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-title .section-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.section-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.section-link:hover { gap: .5rem; }

/* ---------- JOB CARDS ---------- */
.job-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--white);
  transition: var(--transition);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08), var(--shadow-md);
  transform: translateY(-1px);
}
.job-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.job-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job-logo i { color: var(--gray-400); font-size: 1.3rem; }
.job-body { flex: 1; min-width: 0; }
.job-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-title a { color: inherit; }
.job-title a:hover { color: var(--primary); }
.job-company { font-size: .85rem; color: var(--gray-600); margin-bottom: .5rem; font-weight: 500; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- POST CARDS ---------- */
.post-card { border-radius: var(--radius); overflow: hidden; }
.post-card .post-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.post-card .post-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 2.5rem;
}
.post-card .post-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.post-card .post-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: .5rem;
}
.post-card .post-title a { color: inherit; }
.post-card .post-title a:hover { color: var(--primary); }
.post-card .post-excerpt {
  font-size: .82rem;
  color: var(--gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  color: var(--gray-400);
  font-weight: 500;
}
.post-meta i { margin-right: .2rem; }

/* ---------- STATS CARDS ---------- */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label { font-size: .8rem; color: var(--gray-500); font-weight: 500; }

/* ---------- PAGINATION ---------- */
.pagination .page-link {
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  border-radius: var(--radius-sm) !important;
  padding: .45rem .75rem;
  margin: 0 .15rem;
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
}
.pagination .page-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------- TAGS / CATEGORIES ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
}
.tag:hover, .tag.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* ---------- ARTICLE ---------- */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-700);
}
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--gray-900); }
.article-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--gray-800); }
.article-body p { margin-bottom: 1.2rem; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: .75rem 1.25rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-600);
}
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-md); }
.article-body code {
  background: var(--gray-100);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
  color: var(--danger);
}

/* ---------- SIDEBAR ---------- */
.sidebar-card { margin-bottom: 1.25rem; }
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list li {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .25rem;
  color: var(--gray-700);
  font-size: .875rem;
  font-weight: 500;
}
.sidebar-list a:hover { color: var(--primary); padding-left: .4rem; }
.sidebar-count {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: .72rem;
  padding: .15rem .5rem;
  border-radius: 99px;
  font-weight: 600;
}

/* ---------- LOGIN PAGE ---------- */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #ede9fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
}
.login-logo {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.login-body { padding: 2rem; }
.login-info {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .82rem;
  color: #1e3a8a;
  margin-top: 1.25rem;
}
.login-info strong { display: block; margin-bottom: .2rem; }

/* ---------- CAROUSEL ---------- */
.hero-carousel { margin-bottom: 0; }
.hero-carousel .carousel-item { height: 480px; }
.hero-carousel img { height: 100%; object-fit: cover; }
.carousel-gradient {
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  position: absolute;
  inset: 0;
}

/* ---------- MESSAGES ---------- */
.messages-container { padding: .75rem 0 0; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
footer .footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}
footer .footer-desc { font-size: .875rem; line-height: 1.7; max-width: 280px; }
footer .footer-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
footer .footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

footer .footer-link { display: block; color: var(--gray-400); font-size: .9rem; padding: .4rem 0 .4rem 1.25rem; transition: var(--transition); }
footer .footer-title + p { padding-left: 1.25rem; }
footer .footer-link:hover { color: var(--white); padding-left: .3rem; }
footer .footer-divider { border-color: var(--gray-800); margin: 1.5rem 0; }


footer .footer-bottom { font-size: .82rem; }
footer .social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: .85rem;
  transition: var(--transition);
}
footer .social-link:hover { background: var(--gray-800); color: var(--white); border-color: var(--gray-600); }

/* ---------- UTILITIES ---------- */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--gray-500) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--gray-50) !important; }

.divider { border: none; border-top: 1px solid var(--gray-200); margin: 1.5rem 0; }

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fade-in { animation: fadeIn .4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--gray-200); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--gray-200); padding: 1rem 1.5rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .navbar .container { height: auto; padding: 0.75rem 1.25rem; }
  .navbar-brand { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .hero-section { padding: 3.5rem 0 3rem; text-align: center; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { margin: 0 auto; }
  .hero-carousel .carousel-item { height: 320px; }
  .job-card { flex-direction: column; gap: 0.75rem; }
  .job-logo { width: 44px; height: 44px; }
  .post-card .post-img { height: 160px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 576px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .content-header-title { font-size: 1.35rem; }
  .content-header-wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .content-header-wrap .btn { margin-top: 0.5rem; width: 100%; justify-content: center; }
  .card-body { padding: 1.25rem 1rem; }
  .dash-layout { gap: 1.25rem; }
  .footer-title { margin-top: 1.5rem; }
}

/* ---------- DASHBOARD LAYOUT (Shared) ---------- */
.dash-layout { 
  display: grid; 
  grid-template-columns: 280px 1fr; 
  gap: 1.5rem; 
  align-items: start; 
}
@media (max-width: 991px) { 
  .dash-layout { grid-template-columns: 1fr; } 
}

/* ---------- CONTENT HEADER ---------- */
.content-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 1rem;
}
.content-header-title {
  margin: 0;
  font-weight: 800;
  color: var(--gray-900);
  font-size: 1.5rem;
}
.content-header-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

/* ---- PROFILE CARD ---- */
.profile-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.profile-card .profile-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}
.profile-card .profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 2.5px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: block; margin: 0 auto .75rem;
}
.profile-card .profile-name {
  color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.35;
  margin-bottom: .15rem;
}
.profile-card .profile-nim {
  color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 500;
}
.profile-card .profile-body { padding: 1rem 1.25rem; }

/* Unit badge — wraps long text, no overflow */
.profile-card .profile-unit-badge {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .6rem .85rem;
  margin-bottom: .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  word-break: break-word;
}
.profile-card .profile-unit-badge i {
  flex-shrink: 0; margin-top: .1rem; opacity: .75;
}

/* Compact info grid */
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.profile-info-cell {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: .5rem .65rem;
  border: 1px solid var(--gray-100);
}
.profile-info-cell .pi-label {
  font-size: .65rem; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .1rem;
}
.profile-info-cell .pi-value {
  font-size: .8rem; font-weight: 700; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-info-cell.full { grid-column: 1 / -1; }
.profile-info-cell.full .pi-value { white-space: normal; }

/* ---- SIDEBAR MENU ---- */
.sidebar-menu-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-menu-label {
  font-size: .68rem; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .07em; padding: .75rem 1rem .4rem;
}
.student-menu-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: .875rem;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.student-menu-link:hover {
  background: var(--gray-50);
  color: var(--primary);
  border-left-color: var(--primary);
}
.student-menu-link.active {
  background: #eff6ff;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}
.student-menu-link.danger { color: var(--danger); }
.student-menu-link.danger:hover { background: #fef2f2; border-left-color: var(--danger); }
.student-menu-link + .student-menu-link { border-top: 1px solid var(--gray-100); }
.student-menu-link .menu-icon {
  width: 20px; text-align: center; font-size: 1rem;
  flex-shrink: 0; opacity: .7;
}
.student-menu-link.active .menu-icon,
.student-menu-link:hover .menu-icon { opacity: 1; }
