/* ==========================================================================
   Train & Hire — Application Stylesheet
   Central design system: tokens, shared panel layout, merged modules
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Typography */
  --th-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Text */
  --th-text: #1a1d23;
  --th-text-secondary: #5f6368;
  --th-text-muted: #9aa0a6;

  /* Brand */
  --th-accent: #0d6efd;
  --th-accent-hover: #0b5ed7;

  /* Surfaces */
  --th-bg: #f6f7f9;
  --th-bg-card: #ffffff;
  --th-bg-subtle: #f9fafb;
  --th-sidebar-bg: #1a1d23;

  /* Borders */
  --th-border: #e4e7eb;
  --th-border-light: #f0f1f3;

  /* Shadows */
  --th-shadow-hover:
    0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Backward-compat aliases (referenced by page-specific CSS) */
  --jobs-font: var(--th-font);
  --jobs-sidebar-bg: var(--th-bg);
  --jobs-card-bg: var(--th-bg-card);
  --jobs-card-border: var(--th-border);
  --jobs-card-hover-shadow: var(--th-shadow-hover);
  --jobs-card-active-border: var(--th-accent);
  --jobs-detail-bg: var(--th-bg-card);
  --jobs-text-primary: var(--th-text);
  --jobs-text-secondary: var(--th-text-secondary);
  --jobs-text-muted: var(--th-text-muted);
  --jobs-accent: var(--th-accent);

  --at-text-primary: var(--th-text);
  --at-text-secondary: var(--th-text-secondary);
  --at-text-muted: var(--th-text-muted);
  --at-border: var(--th-border);
  --at-accent: var(--th-accent);
  --at-bg-subtle: var(--th-bg-subtle);
  --at-bg-page: var(--th-bg);

  --edu-font: var(--th-font);
  --we-font: var(--th-font);
  --skill-font: var(--th-font);
  --cred-font: var(--th-font);

  --learning-font: var(--th-font);
  --learning-text-primary: var(--th-text);
  --learning-text-secondary: var(--th-text-secondary);
  --learning-text-muted: var(--th-text-muted);
  --learning-border: var(--th-border);
  --learning-card-bg: var(--th-bg-card);
  --learning-accent: var(--th-accent);
}

/* --------------------------------------------------------------------------
   Turbo Progress Bar
   -------------------------------------------------------------------------- */

.turbo-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
  background-size: 200% 100%;
  animation: turbo-progress-shimmer 1.5s linear infinite;
}

@keyframes turbo-progress-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* --------------------------------------------------------------------------
   Shared Animations
   -------------------------------------------------------------------------- */

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

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

/* ==========================================================================
   Navbar — hardcode critical styles so they render before Tailwind CDN
   initializes, preventing a flash of unstyled blue-link content on first load.
   ========================================================================== */

#main-nav {
  background-color: #0d6efd;
  position: sticky;
  top: 0;
  z-index: 50;
}

#main-nav a,
#main-nav button {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

#main-nav a:hover,
#main-nav button:hover {
  color: #fff;
}

/* ==========================================================================
   Panel Layout — shared by Dashboard, Company, Admin
   ========================================================================== */

.dash,
.co-dashboard {
  font-family: var(--th-font);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  max-width: 100vw;
  margin-top: -1.5rem;
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Hide shared footer where copyright lives in sidebar */
body:has(.dash) footer,
body:has(.co-dashboard) footer,
body:has(.jobs-browser) footer {
  display: none;
}

@media (min-width: 992px) {
  body:has(.dash) > div.bg-white,
  body:has(.co-dashboard) > div.bg-white {
    overflow: hidden !important;
  }

  .dash,
  .co-dashboard {
    height: calc(100vh - 56px);
  }
}

/* --------------------------------------------------------------------------
   Panel Sidebar
   -------------------------------------------------------------------------- */

.dash-sidebar,
.co-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--th-sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.dash-sidebar::-webkit-scrollbar,
.co-sidebar::-webkit-scrollbar {
  display: none;
}

.dash-sidebar-header,
.co-sidebar-header {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-sidebar-user,
.co-sidebar-company {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
}

.dash-sidebar-user:hover,
.co-sidebar-company:hover {
  color: #fff;
}

.dash-sidebar-avatar,
.co-sidebar-logo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dash-sidebar-avatar {
  border-radius: 50%;
}
.co-sidebar-logo {
  border-radius: 8px;
}

.dash-sidebar-avatar-placeholder,
.co-sidebar-logo-placeholder {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #3d5a80, #5b8fb9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.dash-sidebar-avatar-placeholder {
  border-radius: 50%;
}
.co-sidebar-logo-placeholder {
  border-radius: 8px;
}

.dash-sidebar-name,
.co-sidebar-company-name {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar-role {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   Panel Navigation
   -------------------------------------------------------------------------- */

.dash-sidebar-nav,
.co-sidebar-nav {
  padding: 0.75rem 0;
  flex: 1;
}

.dash-nav-section,
.co-nav-section {
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}

.dash-nav-label,
.co-nav-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 0.5rem;
  margin-bottom: 0.35rem;
}

.dash-nav-link,
.co-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 1px;
  letter-spacing: -0.005em;
}

.dash-nav-link:hover,
.co-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.dash-nav-link.active,
.co-nav-link.active {
  color: #fff;
  background: rgba(13, 110, 253, 0.2);
  font-weight: 600;
}

.dash-nav-link svg,
.co-nav-link svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
  opacity: 0.7;
}

.dash-nav-link.active svg,
.co-nav-link.active svg {
  opacity: 1;
}

.dash-nav-badge,
.co-nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.dash-nav-badge-alert {
  background: #dc3545 !important;
  color: #fff !important;
}

.co-sidebar-footer {
  padding: 0.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  text-align: center;
}

.co-sidebar-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s ease;
}

.co-sidebar-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.co-sidebar-footer a svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.co-sidebar-copyright {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.01em;
}

.mobile-copyright {
  display: none;
}

/* --------------------------------------------------------------------------
   Panel Main Content
   -------------------------------------------------------------------------- */

.dash-main,
.co-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--th-bg);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #c4c8cc transparent;
}

.dash-main::-webkit-scrollbar,
.co-main::-webkit-scrollbar {
  width: 5px;
}

.dash-main::-webkit-scrollbar-track,
.co-main::-webkit-scrollbar-track {
  background: transparent;
}

.dash-main::-webkit-scrollbar-thumb,
.co-main::-webkit-scrollbar-thumb {
  background: #c4c8cc;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Panel Page Header
   -------------------------------------------------------------------------- */

.dash-page-header,
.co-page-header {
  padding: 1.75rem 2.5rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--th-border);
}

.dash-page-header-inner,
.co-page-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
}

.dash-page-title,
.co-page-title {
  font-family: var(--th-font);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--th-text);
  letter-spacing: -0.035em;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.dash-page-subtitle,
.co-page-subtitle {
  font-size: 0.88rem;
  color: var(--th-text-secondary);
  margin-bottom: 0;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Panel Breadcrumb
   -------------------------------------------------------------------------- */

.co-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--th-text-muted);
  margin-bottom: 0.65rem;
}

.co-breadcrumb a {
  color: var(--th-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.co-breadcrumb a:hover {
  color: var(--th-accent);
}

.co-breadcrumb-sep {
  color: #d1d5db;
  font-size: 0.6rem;
}

/* --------------------------------------------------------------------------
   Panel Page Body
   -------------------------------------------------------------------------- */

.dash-page-body,
.co-page-body {
  padding: 2rem 2.5rem 3rem;
  max-width: 1100px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Panel Cards
   -------------------------------------------------------------------------- */

.dash-card,
.co-card {
  background: var(--th-bg-card);
  border: 1.5px solid var(--th-border);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  animation: fadeSlideIn 0.25s ease-out;
}

.dash-card {
  margin-bottom: 1.5rem;
}
.dash-card:last-child {
  margin-bottom: 0;
}

.dash-card-header,
.co-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--th-border-light);
}

.dash-card-title,
.co-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--th-text-secondary);
  margin-bottom: 0;
}

.dash-card-body,
.co-card-body {
  padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   Panel Select Dropdowns
   Custom-styled selects with chevron indicator for admin/company dashboards
   -------------------------------------------------------------------------- */

.co-dashboard select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.co-dashboard select:hover:not(:focus) {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.co-dashboard select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Panel Stats
   -------------------------------------------------------------------------- */

.dash-stats,
.co-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat-card,
.co-stat-card {
  background: var(--th-bg-card);
  border: 1.5px solid var(--th-border);
  border-radius: 10px;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
  animation: fadeSlideIn 0.25s ease-out both;
}

.dash-stat-card {
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.co-stat-card {
  padding: 1.15rem 1.25rem;
}

.dash-stat-card:hover,
.co-stat-card:hover {
  color: inherit;
  text-decoration: none;
  box-shadow: var(--th-shadow-hover);
  transform: translateY(-1px);
}

.dash-stat-card::before,
.co-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.dash-stat-card:hover::before,
.co-stat-card:hover::before {
  opacity: 1;
}

.dash-stat-card:nth-child(1)::before {
  background: #2563eb;
}
.dash-stat-card:nth-child(2)::before {
  background: #d97706;
}
.dash-stat-card:nth-child(3)::before {
  background: #059669;
}
.dash-stat-card:nth-child(4)::before {
  background: #6366f1;
}
.dash-stat-card:nth-child(5)::before {
  background: #dc2626;
}
.dash-stat-card:nth-child(6)::before {
  background: #0d9488;
}

.co-stat-card:nth-child(1)::before {
  background: var(--th-accent);
}
.co-stat-card:nth-child(2)::before {
  background: #f59e0b;
}
.co-stat-card:nth-child(3)::before {
  background: #10b981;
}

.dash-stat-card:nth-child(1) {
  animation-delay: 0.03s;
}
.dash-stat-card:nth-child(2) {
  animation-delay: 0.06s;
}
.dash-stat-card:nth-child(3) {
  animation-delay: 0.09s;
}
.dash-stat-card:nth-child(4) {
  animation-delay: 0.12s;
}
.dash-stat-card:nth-child(5) {
  animation-delay: 0.15s;
}
.dash-stat-card:nth-child(6) {
  animation-delay: 0.18s;
}

/* Stat icon (dashboard variant with colored background) */
.dash-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  fill: none;
}

.dash-stat-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}
.dash-stat-icon-amber {
  background: #fef3c7;
  color: #d97706;
}
.dash-stat-icon-green {
  background: #d1fae5;
  color: #059669;
}
.dash-stat-icon-purple {
  background: #e0e7ff;
  color: #6366f1;
}
.dash-stat-icon-rose {
  background: #fee2e2;
  color: #dc2626;
}
.dash-stat-icon-teal {
  background: #ccfbf1;
  color: #0d9488;
}

.dash-stat-info {
  min-width: 0;
}

.dash-stat-value,
.co-stat-value {
  font-weight: 800;
  color: var(--th-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash-stat-value {
  font-size: 1.65rem;
  margin-bottom: 0.25rem;
}
.co-stat-value {
  font-size: 1.85rem;
}

.dash-stat-label,
.co-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-text-secondary);
}

.dash-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.co-stat-label {
  margin-bottom: 0.45rem;
}

/* --------------------------------------------------------------------------
   Panel Tables
   -------------------------------------------------------------------------- */

.co-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: separate;
  border-spacing: 0;
}

.co-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-text-secondary);
  padding: 0.65rem 1rem;
  border-bottom: 1.5px solid var(--th-border);
  background: #fafbfc;
  white-space: nowrap;
}

.co-table thead th:first-child {
  padding-left: 1.25rem;
}
.co-table thead th:last-child {
  padding-right: 1.25rem;
}

.co-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: var(--th-text);
  vertical-align: middle;
}

.co-table tbody td:first-child {
  padding-left: 1.25rem;
}
.co-table tbody td:last-child {
  padding-right: 1.25rem;
}

.co-table tbody tr {
  transition: background 0.12s ease;
}

.co-table tbody tr:hover {
  background: var(--th-bg-subtle);
}
.co-table tbody tr:last-child td {
  border-bottom: none;
}

.co-table .cell-title {
  font-weight: 600;
  color: var(--th-text);
  letter-spacing: -0.01em;
}

.co-table .cell-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.co-table .cell-title a:hover {
  color: var(--th-accent);
}

.co-table .cell-muted {
  color: var(--th-text-muted);
  font-size: 0.8rem;
}

.co-table .cell-actions {
  white-space: nowrap;
  text-align: right;
}

.co-table .cell-actions a,
.co-table .cell-actions button {
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.75rem;
}

/* --------------------------------------------------------------------------
   Panel Badges
   -------------------------------------------------------------------------- */

.co-badge {
  font-family: var(--th-font);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.01em;
  display: inline-block;
  line-height: 1.4;
}

.co-badge-draft {
  background: #f1f3f5;
  color: #495057;
}
.co-badge-published {
  background: #d1fae5;
  color: #065f46;
}
.co-badge-closed {
  background: #fee2e2;
  color: #991b1b;
}
.co-badge-submitted {
  background: #dbeafe;
  color: #1e40af;
}
.co-badge-reviewing {
  background: #fef3c7;
  color: #92400e;
}
.co-badge-interviewed {
  background: #e0e7ff;
  color: #3730a3;
}
.co-badge-offered {
  background: #d1fae5;
  color: #065f46;
}
.co-badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}
.co-badge-withdrawn {
  background: #f1f3f5;
  color: #495057;
}
.co-badge-admin {
  background: #fef3c7;
  color: #92400e;
}
.co-badge-member {
  background: #f1f3f5;
  color: #495057;
}

/* Admin badge extensions */
.co-badge-beginner {
  background: #d1fae5;
  color: #065f46;
}
.co-badge-intermediate {
  background: #dbeafe;
  color: #1e40af;
}
.co-badge-advanced {
  background: #fef3c7;
  color: #92400e;
}
.co-badge-expert {
  background: #fee2e2;
  color: #991b1b;
}
.co-badge-seeker {
  background: #dbeafe;
  color: #1e40af;
}
.co-badge-employer {
  background: #e0e7ff;
  color: #3730a3;
}
.co-badge-open {
  background: #d1fae5;
  color: #065f46;
}
.co-badge-full_time {
  background: #dbeafe;
  color: #1e40af;
}
.co-badge-part_time {
  background: #e0e7ff;
  color: #3730a3;
}
.co-badge-contract {
  background: #fef3c7;
  color: #92400e;
}
.co-badge-internship {
  background: #fce7f3;
  color: #9d174d;
}
/* Interview status badges */
.co-badge-proposed {
  background: #fef3c7;
  color: #92400e;
}
.co-badge-confirmed {
  background: #dbeafe;
  color: #1e40af;
}
.co-badge-completed {
  background: #d1fae5;
  color: #065f46;
}
.co-badge-cancelled {
  background: #f1f3f5;
  color: #495057;
}

/* --------------------------------------------------------------------------
   Panel Section Headings
   -------------------------------------------------------------------------- */

.dash-section-heading,
.co-section-heading {
  font-family: var(--th-font);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--th-text-secondary);
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--th-border-light);
}

/* --------------------------------------------------------------------------
   Panel Flash Messages
   -------------------------------------------------------------------------- */

.dash-flash {
  padding: 0.75rem 2.5rem 0;
  max-width: 1100px;
}

.dash-flash-notice,
.dash-flash-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 500;
}

.dash-flash-notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.dash-flash-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.dash-flash-dismiss {
  margin-left: 0.75rem;
  background: transparent;
  border: 0;
  padding: 0.15rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.dash-flash-dismiss:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Panel Errors
   -------------------------------------------------------------------------- */

.dash-errors {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.dash-errors svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  stroke: #ef4444;
  stroke-width: 1.75;
  fill: none;
}

.dash-errors ul {
  margin: 0.25rem 0 0 0;
  padding-left: 1rem;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Admin question/answer (merged from admin.css)
   -------------------------------------------------------------------------- */

.co-question-number {
  font-weight: 700;
  color: var(--th-text-secondary);
  min-width: 28px;
  font-size: 0.78rem;
}

.co-answer-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
  transition: background 0.12s ease;
}

.co-answer-option:last-child {
  border-bottom: none;
}
.co-answer-option:hover {
  background: #fafbfc;
}
.co-answer-option-correct {
  background: #f0fdf4;
}
.co-answer-option-correct:hover {
  background: #ecfdf5;
}

.co-answer-option-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-answer-option-correct .co-answer-option-indicator {
  border-color: #10b981;
  background: #10b981;
}

.co-answer-option-correct .co-answer-option-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.co-answer-option-body {
  flex: 1;
  font-weight: 500;
  color: var(--th-text);
}

.co-answer-option-correct .co-answer-option-body {
  color: #065f46;
  font-weight: 600;
}

.co-answer-option-actions {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.co-answer-option:hover .co-answer-option-actions {
  opacity: 1;
}

.co-answer-option-actions a,
.co-answer-option-actions button {
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.12s ease;
}

.co-answer-option-actions .btn-remove {
  color: #dc3545;
}
.co-answer-option-actions .btn-remove:hover {
  background: #fee2e2;
}

/* --------------------------------------------------------------------------
   Panel Responsive — sidebar collapses to horizontal nav
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .dash,
  .co-dashboard {
    flex-direction: column;
    min-height: auto;
  }

  .dash-sidebar,
  .co-sidebar {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .dash-sidebar-header,
  .co-sidebar-header {
    display: none;
  }

  .dash-sidebar-nav,
  .co-sidebar-nav {
    display: flex;
    padding: 0;
    gap: 0;
  }

  .dash-nav-section,
  .co-nav-section {
    display: flex;
    padding: 0 0.5rem;
    margin-bottom: 0;
    gap: 0;
  }

  .dash-nav-label,
  .co-nav-label {
    display: none;
  }

  .dash-nav-link,
  .co-nav-link {
    white-space: nowrap;
    padding: 0.9rem 0.85rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: 0;
    background: transparent;
  }

  .dash-nav-link.active,
  .co-nav-link.active {
    background: transparent;
    border-bottom-color: var(--th-accent);
    color: #fff;
  }

  .dash-nav-link:not(.active),
  .co-nav-link:not(.active) {
    color: rgba(255, 255, 255, 0.55);
  }

  .dash-sidebar-footer,
  .co-sidebar-footer {
    display: none;
  }

  .mobile-copyright {
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid #e5e7eb;
  }

  .mobile-copyright a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--th-accent);
    text-decoration: none;
    font-weight: 500;
  }

  .mobile-copyright a svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .mobile-copyright a:hover {
    opacity: 0.8;
  }

  .mobile-copyright p {
    margin-top: 0.35rem;
    font-size: 0.65rem;
    color: #9ca3af;
    letter-spacing: 0.01em;
  }

  .dash-page-body,
  .co-page-body {
    padding: 1.5rem;
  }

  .dash-page-header,
  .co-page-header {
    padding: 1.25rem 1.5rem;
  }

  .dash-stats,
  .co-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-flash {
    padding: 0.75rem 1.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .dash-page-title,
  .co-page-title {
    font-size: 1.3rem;
  }

  .dash-page-body,
  .co-page-body {
    padding: 1rem;
  }

  .dash-page-header,
  .co-page-header {
    padding: 1rem;
  }

  .dash-stats,
  .co-stats {
    grid-template-columns: 1fr;
  }

  .dash-stat-card,
  .co-stat-card {
    padding: 1rem;
  }

  .dash-flash {
    padding: 0.5rem 1rem 0;
  }
}

/* ==========================================================================
   Navbar Active Link (client-side via JS for turbo-permanent nav)
   ========================================================================== */

[data-nav-active="true"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   Navbar User Group (merged from navbar.css)
   ========================================================================== */

.nav-user-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  line-height: 1;
}

.nav-user-group:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.nav-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
  line-height: 1;
}

@media (max-width: 767px) {
  .nav-user-group {
    padding: 0.375rem 0.5rem;
    gap: 0.625rem;
  }

  .nav-avatar {
    width: 32px;
    height: 32px;
  }

  .nav-avatar-placeholder {
    width: 32px;
    height: 32px;
    font-size: 0.825rem;
  }
}


/* ==========================================================================
   Notification Bell (merged from notifications.css - navbar portion)
   ========================================================================== */

.nav-notifications-bell {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.nav-notifications-bell svg {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.nav-notifications-bell:hover svg {
  opacity: 1;
}

.nav-notifications-count {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #dc3545;
  border-radius: 10px;
  animation: nav-badge-pulse 2s ease-in-out infinite;
}

@keyframes nav-badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ==========================================================================
   Skill Badges (merged from user_skills.css)
   ========================================================================== */

:root {
  --prof-beginner-bg: #e0f2fe;
  --prof-beginner-text: #0c4a6e;
  --prof-beginner-border: #7dd3fc;
  --prof-beginner-icon: #38bdf8;
  --prof-intermediate-bg: #dbeafe;
  --prof-intermediate-text: #1e3a8a;
  --prof-intermediate-border: #93c5fd;
  --prof-intermediate-icon: #3b82f6;
  --prof-advanced-bg: #fef3c7;
  --prof-advanced-text: #78350f;
  --prof-advanced-border: #fcd34d;
  --prof-advanced-icon: #f59e0b;
  --prof-expert-bg: #fee2e2;
  --prof-expert-text: #7f1d1d;
  --prof-expert-border: #fca5a5;
  --prof-expert-icon: #ef4444;
  --verified-color: #059669;
  --verified-bg: #d1fae5;
}

.skill-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-family: var(--th-font);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.skill-badge-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skill-badge-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skill-badge-level {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.proficiency-beginner {
  background: var(--prof-beginner-bg);
  color: var(--prof-beginner-text);
  border-color: var(--prof-beginner-border);
}
.proficiency-intermediate {
  background: var(--prof-intermediate-bg);
  color: var(--prof-intermediate-text);
  border-color: var(--prof-intermediate-border);
}
.proficiency-advanced {
  background: var(--prof-advanced-bg);
  color: var(--prof-advanced-text);
  border-color: var(--prof-advanced-border);
}
.proficiency-expert {
  background: var(--prof-expert-bg);
  color: var(--prof-expert-text);
  border-color: var(--prof-expert-border);
}

.skill-badge-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--verified-bg);
  color: var(--verified-color);
  flex-shrink: 0;
  margin-left: 0.1rem;
}

.skill-badge-verified svg {
  width: 10px;
  height: 10px;
}

.user-skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease;
  animation: fadeIn 0.2s ease-out both;
}

.user-skill-row:hover {
  background: #f8f9fb;
}

.user-skill-row:nth-child(1) {
  animation-delay: 0.02s;
}
.user-skill-row:nth-child(2) {
  animation-delay: 0.04s;
}
.user-skill-row:nth-child(3) {
  animation-delay: 0.06s;
}
.user-skill-row:nth-child(4) {
  animation-delay: 0.06s;
}
.user-skill-row:nth-child(5) {
  animation-delay: 0.08s;
}
.user-skill-row:nth-child(6) {
  animation-delay: 0.1s;
}
.user-skill-row:nth-child(7) {
  animation-delay: 0.12s;
}
.user-skill-row:nth-child(8) {
  animation-delay: 0.14s;
}
.user-skill-row:nth-child(9) {
  animation-delay: 0.16s;
}
.user-skill-row:nth-child(10) {
  animation-delay: 0.18s;
}

.user-skill-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.user-skill-experience {
  font-family: var(--th-font);
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  background: #f3f4f6;
  border-radius: 4px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.user-skills-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--th-text-muted);
}

.user-skills-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.user-skills-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: #adb5bd;
}

.user-skills-empty p {
  font-family: var(--th-font);
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .skill-badge-pill {
    font-size: 0.78rem;
    padding: 0.25rem 0.55rem;
  }
  .skill-badge-level {
    font-size: 0.58rem;
  }
  .user-skill-row {
    padding: 0.35rem 0.4rem;
  }
}

/* ==========================================================================
   User Credentials List (merged from user_credentials.css)
   ========================================================================== */

:root {
  --cred-active-bg: #d1fae5;
  --cred-active-text: #065f46;
  --cred-active-border: #6ee7b7;
  --cred-expired-bg: #fee2e2;
  --cred-expired-text: #991b1b;
  --cred-expired-border: #fca5a5;
  --cred-no-expiry-bg: #f3f4f6;
  --cred-no-expiry-text: #6b7280;
  --cred-no-expiry-border: #d1d5db;
}

.user-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.user-credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease;
  gap: 0.75rem;
  animation: fadeIn 0.2s ease-out both;
}

.user-credential-row:hover {
  background: #f8f9fb;
}

.user-credential-row:nth-child(1) {
  animation-delay: 0.02s;
}
.user-credential-row:nth-child(2) {
  animation-delay: 0.04s;
}
.user-credential-row:nth-child(3) {
  animation-delay: 0.06s;
}
.user-credential-row:nth-child(4) {
  animation-delay: 0.08s;
}
.user-credential-row:nth-child(5) {
  animation-delay: 0.1s;
}
.user-credential-row:nth-child(6) {
  animation-delay: 0.12s;
}
.user-credential-row:nth-child(7) {
  animation-delay: 0.14s;
}
.user-credential-row:nth-child(8) {
  animation-delay: 0.16s;
}
.user-credential-row:nth-child(9) {
  animation-delay: 0.18s;
}
.user-credential-row:nth-child(10) {
  animation-delay: 0.2s;
}

.user-credential-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-credential-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.user-credential-name {
  font-family: var(--th-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.user-credential-issuer {
  font-family: var(--th-font);
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
}

.user-credential-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.user-credential-date {
  font-family: var(--th-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  background: #f3f4f6;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

.user-credential-status {
  font-family: var(--th-font);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.user-credential-status-active {
  background: var(--cred-active-bg);
  color: var(--cred-active-text);
  border-color: var(--cred-active-border);
}
.user-credential-status-expired {
  background: var(--cred-expired-bg);
  color: var(--cred-expired-text);
  border-color: var(--cred-expired-border);
}
.user-credential-status-no-expiry {
  background: var(--cred-no-expiry-bg);
  color: var(--cred-no-expiry-text);
  border-color: var(--cred-no-expiry-border);
}

.user-credential-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #9ca3af;
  transition:
    color 0.15s ease,
    background 0.15s ease;
  flex-shrink: 0;
}

.user-credential-link:hover {
  color: #3b82f6;
  background: #eff6ff;
}
.user-credential-link svg {
  width: 14px;
  height: 14px;
}

.user-credentials-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--th-text-muted);
}

.user-credentials-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.user-credentials-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: #adb5bd;
}

.user-credentials-empty p {
  font-family: var(--th-font);
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .user-credential-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.4rem;
    gap: 0.4rem;
  }
  .user-credential-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .user-credential-name {
    font-size: 0.84rem;
  }
  .user-credential-issuer {
    font-size: 0.74rem;
  }
  .user-credential-date {
    font-size: 0.68rem;
  }
  .user-credential-status {
    font-size: 0.64rem;
  }
  .user-credential-link {
    align-self: flex-end;
  }
}

/* ==========================================================================
   Work Experience Timeline (merged from work_experience.css)
   ========================================================================== */

:root {
  --we-border-color: #e2e5ea;
  --we-marker-color: #3b82f6;
  --we-marker-active: #2563eb;
}

.work-experience-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--we-border-color);
}

.work-experience-entry {
  position: relative;
  padding: 0.75rem 0 1.25rem 1rem;
  animation: fadeIn 0.2s ease-out both;
}

.work-experience-entry:last-child {
  padding-bottom: 0.25rem;
}

.work-experience-entry:nth-child(1) {
  animation-delay: 0.02s;
}
.work-experience-entry:nth-child(2) {
  animation-delay: 0.04s;
}
.work-experience-entry:nth-child(3) {
  animation-delay: 0.06s;
}
.work-experience-entry:nth-child(4) {
  animation-delay: 0.08s;
}
.work-experience-entry:nth-child(5) {
  animation-delay: 0.1s;
}
.work-experience-entry:nth-child(6) {
  animation-delay: 0.12s;
}
.work-experience-entry:nth-child(7) {
  animation-delay: 0.14s;
}
.work-experience-entry:nth-child(8) {
  animation-delay: 0.16s;
}
.work-experience-entry:nth-child(9) {
  animation-delay: 0.18s;
}
.work-experience-entry:nth-child(10) {
  animation-delay: 0.2s;
}

.work-experience-marker {
  position: absolute;
  left: -1.25rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--we-marker-color);
  transform: translateX(-50%);
  z-index: 1;
}

.work-experience-entry:first-child .work-experience-marker {
  background: var(--we-marker-active);
  border-color: var(--we-marker-active);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.work-experience-content {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.work-experience-content:hover {
  background: #f8f9fb;
}

.work-experience-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.work-experience-company {
  font-family: var(--th-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.work-experience-dates {
  font-family: var(--th-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  background: #f3f4f6;
  border-radius: 4px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.work-experience-title {
  font-family: var(--th-font);
  font-size: 0.84rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.3rem;
}

.work-experience-location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--th-font);
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.work-experience-location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.work-experience-description {
  font-family: var(--th-font);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #6b7280;
  margin-top: 0.25rem;
}

.work-experience-description span {
  display: block;
}
.work-experience-description span + span {
  margin-top: 0.3rem;
}

.work-experience-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--th-text-muted);
}

.work-experience-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.work-experience-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: #adb5bd;
}

.work-experience-empty p {
  font-family: var(--th-font);
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .work-experience-timeline {
    padding-left: 1rem;
  }
  .work-experience-entry {
    padding-left: 0.75rem;
  }
  .work-experience-marker {
    left: -1rem;
    width: 8px;
    height: 8px;
  }
  .work-experience-company {
    font-size: 0.84rem;
  }
  .work-experience-dates {
    font-size: 0.68rem;
  }
  .work-experience-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  .work-experience-content {
    padding: 0.4rem 0.5rem;
  }
}

/* ==========================================================================
   Education Timeline (merged from education.css)
   ========================================================================== */

:root {
  --edu-border-color: #e2e5ea;
  --edu-marker-color: #8b5cf6;
  --edu-marker-active: #7c3aed;
}

.education-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--edu-border-color);
}

.education-entry {
  position: relative;
  padding: 0.75rem 0 1.25rem 1rem;
  animation: fadeIn 0.2s ease-out both;
}

.education-entry:last-child {
  padding-bottom: 0.25rem;
}

.education-entry:nth-child(1) {
  animation-delay: 0.02s;
}
.education-entry:nth-child(2) {
  animation-delay: 0.04s;
}
.education-entry:nth-child(3) {
  animation-delay: 0.06s;
}
.education-entry:nth-child(4) {
  animation-delay: 0.08s;
}
.education-entry:nth-child(5) {
  animation-delay: 0.1s;
}

.education-marker {
  position: absolute;
  left: -1.25rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--edu-marker-color);
  transform: translateX(-50%);
  z-index: 1;
}

.education-entry:first-child .education-marker {
  background: var(--edu-marker-active);
  border-color: var(--edu-marker-active);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.education-content {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.education-content:hover {
  background: #f8f9fb;
}

.education-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.education-degree {
  font-family: var(--th-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.education-year {
  font-family: var(--th-font);
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  padding: 0.15rem 0.5rem;
  background: #f3f4f6;
  border-radius: 4px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.education-institution {
  font-family: var(--th-font);
  font-size: 0.84rem;
  font-weight: 500;
  color: #374151;
}

.education-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--th-text-muted);
}

.education-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.education-empty-icon svg {
  width: 22px;
  height: 22px;
  stroke: #adb5bd;
}

.education-empty p {
  font-family: var(--th-font);
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .education-list {
    padding-left: 1rem;
  }
  .education-entry {
    padding-left: 0.75rem;
  }
  .education-marker {
    left: -1rem;
    width: 8px;
    height: 8px;
  }
  .education-degree {
    font-size: 0.84rem;
  }
  .education-year {
    font-size: 0.68rem;
  }
  .education-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  .education-content {
    padding: 0.4rem 0.5rem;
  }
}
