/* =====================================================
   EchoWork – Responsive CSS
   Tập trung toàn bộ responsive rules cho mọi trang
   Breakpoints:
     Mobile:  320px, 375px, 390px, 414px, 480px
     Tablet:  768px, 820px
     Desktop: 1024px, 1280px, 1366px, 1440px, 1920px
   ===================================================== */

/* ─── 0. GLOBAL OVERFLOW GUARD ─────────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

/* ─── 1. HAMBURGER BUTTON ───────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.2s;
  gap: 5px;
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(0, 184, 148, 0.08);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main, #2d3436);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── 2. MOBILE NAV OVERLAY (TopCV style) ──────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 990;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(320px, 88vw);
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f4f8;
  flex-shrink: 0;
}

.mobile-nav-header .mobile-logo img {
  height: 48px;
  width: auto;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f4f7f6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #636e72;
  transition: background 0.2s;
}

.mobile-nav-close:hover {
  background: #e0e0e0;
}

.mobile-nav-body {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #2d3436;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #edfaf5;
  border-left-color: #00b894;
  color: #00b894;
}

.mobile-nav-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a0aec0;
  padding: 16px 20px 6px;
}

.mobile-nav-divider {
  height: 1px;
  background: #f0f4f8;
  margin: 8px 20px;
}

.mobile-nav-footer {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f0f4f8;
  flex-shrink: 0;
}

.mobile-nav-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 15px;
}

/* Body lock khi drawer mở */
body.nav-open {
  overflow: hidden;
}

/* Dark mode drawer */
body.a11y-dark .mobile-nav-drawer {
  background: #1e1e1e !important;
  border-right: 1px solid #2d2d2d;
}

body.a11y-dark .mobile-nav-header {
  border-bottom-color: #2d2d2d !important;
}

body.a11y-dark .mobile-nav-link {
  color: #eaeaea !important;
}

body.a11y-dark .mobile-nav-link:hover,
body.a11y-dark .mobile-nav-link.active {
  background: rgba(79, 140, 255, 0.1) !important;
  color: #4f8cff !important;
  border-left-color: #4f8cff !important;
}

body.a11y-dark .mobile-nav-section-title {
  color: #6b7280 !important;
}

body.a11y-dark .mobile-nav-footer {
  border-top-color: #2d2d2d !important;
}

body.a11y-dark .mobile-nav-divider {
  background: #2d2d2d !important;
}

body.a11y-dark .mobile-nav-close {
  background: #2a2a2a !important;
  color: #a0aec0 !important;
}

/* High contrast drawer */
body.a11y-high-contrast .mobile-nav-drawer {
  background: #000000 !important;
  border-right: 2px solid #ffffff !important;
}

body.a11y-high-contrast .mobile-nav-link {
  color: #ffffff !important;
}

body.a11y-high-contrast .mobile-nav-link:hover,
body.a11y-high-contrast .mobile-nav-link.active {
  background: #FFD600 !important;
  color: #000000 !important;
  border-left-color: #FFD600 !important;
}

/* ─── 3. TABLET 820px ───────────────────────────────── */
@media (max-width: 820px) {
  /* Main container padding */
  .container {
    padding: 0 16px;
  }

  /* Categories grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  /* EchoAI section */
  .echoai-inner {
    grid-template-columns: 1fr !important;
  }

  .echoai-visual {
    display: none !important;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Dashboard charts */
  .dashboard-charts {
    grid-template-columns: 1fr !important;
  }

  .robot-box {
    display: none !important;
  }
}

/* ─── 4. TABLET 768px ───────────────────────────────── */
@media (max-width: 768px) {
  /* Hamburger: hiện */
  .hamburger {
    display: flex;
  }

  /* Desktop nav: ẩn */
  header .nav {
    display: none !important;
  }

  /* Auth buttons: compact */
  .auth-btns {
    gap: 8px;
  }

  .auth-btns .btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  /* Logo */
  .logo img {
    height: 64px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 40px 16px 30px;
  }

  .hero h1 {
    font-size: 28px !important;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 15px !important;
  }

  .search-box {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 10px;
  }

  .search-box input {
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 10px;
    border: 1.5px solid #e0e5ef;
  }

  .search-box .btn {
    width: 100%;
    border-radius: 10px;
  }

  /* Main grid: sidebar ẩn, job list full width */
  .main-grid {
    grid-template-columns: 1fr !important;
    padding: 20px 0;
    gap: 16px;
  }

  /* Sidebar filter: hiện như panel ngang */
  .sidebar {
    position: static !important;
    border-radius: 12px;
    overflow: visible;
  }

  /* Stat cards */
  .stat-cards {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Dashboard charts */
  .dashboard-charts {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
  }

  /* Job card: dọc trên mobile */
  .job-card {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px;
  }

  .job-info {
    padding-right: 0 !important;
    flex-direction: row;
    width: 100%;
  }

  .job-card > .btn,
  .job-card > a.btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Pricing cards */
  .price-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  /* Company grid */
  .company-grid {
    grid-template-columns: 1fr !important;
  }

  /* Table scroll */
  .table-scroll-container,
  .app-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
  }

  /* B2B section */
  .b2b-grid,
  .b2b-cards {
    grid-template-columns: 1fr !important;
  }

  /* Charts height reduction */
  canvas {
    max-height: 220px;
  }
}

/* ─── 5. MOBILE 480px ───────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 24px !important;
  }

  /* Auth buttons: chỉ hiện 1 button */
  .auth-btns .btn-outline {
    display: none;
  }

  /* Footer: 1 cột */
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* Categories: 2 cột */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .category-card {
    padding: 18px 12px 14px;
  }

  /* Job card: tối ưu mobile */
  .job-card {
    padding: 16px;
  }

  .job-logo {
    width: 48px !important;
    height: 48px !important;
  }

  .job-details h3 {
    font-size: 15px !important;
  }

  .job-meta {
    flex-direction: column;
    gap: 4px;
  }

  /* Stat cards */
  .stat-card {
    padding: 18px 16px;
  }

  .stat-num {
    font-size: 22px !important;
  }

  /* Dashboard section */
  .dashboard-section {
    padding: 40px 0 50px;
  }

  .dashboard-title {
    font-size: 22px !important;
  }

  /* EchoAI */
  .echoai-section {
    padding: 50px 0;
  }

  .echoai-text h2 {
    font-size: 26px !important;
  }

  /* Section titles */
  .section-title {
    font-size: 22px !important;
  }

  /* Form container */
  .form-container {
    margin: 20px auto;
    padding: 24px 18px;
    border-radius: 14px;
  }

  /* CV builder */
  .cvb-layout,
  .cv-layout {
    flex-direction: column !important;
  }

  /* Pagination */
  .job-pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Page btn */
  .page-btn,
  .page-number {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ─── 6. MOBILE 414px ───────────────────────────────── */
@media (max-width: 414px) {
  .hero h1 {
    font-size: 22px !important;
  }

  .hero p {
    font-size: 14px !important;
  }

  .search-box input {
    font-size: 14px;
  }

  /* Banner nav buttons: smaller */
  .banner-nav {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
}

/* ─── 7. MOBILE 375px ───────────────────────────────── */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 20px !important;
  }

  .job-details h3 {
    font-size: 14px !important;
  }

  .auth-btns {
    display: none;
  }

  /* When auth buttons hidden, hamburger must be visible */
  .hamburger {
    display: flex !important;
  }

  .job-card {
    padding: 14px;
  }
}

/* ─── 8. MOBILE 320px ───────────────────────────────── */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 18px !important;
    line-height: 1.3;
  }

  .category-grid {
    grid-template-columns: 1fr !important;
  }

  .logo img {
    height: 50px !important;
  }
}

/* ─── 9. RECRUITER DASHBOARD RESPONSIVE ─────────────── */
@media (max-width: 1024px) {
  /* Recruiter sidebar: collapse to icons only */
  body.recruiter-page .main-wrapper {
    margin-left: 72px;
  }
}

@media (max-width: 768px) {
  /* Recruiter: sidebar hidden by default, show as overlay */
  body.recruiter-page .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  body.recruiter-page .sidebar.mobile-open {
    transform: translateX(0);
    z-index: 200;
  }

  body.recruiter-page .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 199;
  }

  body.recruiter-page .sidebar-overlay.open {
    display: block;
  }

  body.recruiter-page .main-wrapper {
    margin-left: 0 !important;
  }

  /* Stats row: 2 cột */
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  /* Charts row: 1 cột */
  .charts-row {
    grid-template-columns: 1fr !important;
  }

  /* Kanban board: 2 cột */
  .kanban-board {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  /* Bottom row: 1 cột */
  .bottom-row {
    grid-template-columns: 1fr !important;
  }

  /* Quick actions row: 2 cột */
  .quick-actions-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Content padding */
  .content {
    padding: 16px !important;
    gap: 16px;
  }

  .top-header {
    padding: 0 16px !important;
  }

  /* Header search: ẩn trên mobile */
  .header-search {
    display: none;
  }

  /* Table: horizontal scroll */
  .app-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-table {
    min-width: 600px;
  }

  /* Kanban cards: min height reduced */
  .kanban-cards {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  /* Stats row: 1 cột */
  .stats-row {
    grid-template-columns: 1fr !important;
  }

  /* Kanban board: 1 cột */
  .kanban-board {
    grid-template-columns: 1fr !important;
  }

  /* Quick actions: 2 cột */
  .quick-actions-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Page title */
  .page-greeting h1 {
    font-size: 18px !important;
  }
}

/* ─── 10. TABLE RESPONSIVE (mọi trang) ──────────────── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

.table-responsive table {
  min-width: 540px;
  width: 100%;
}

/* ─── 11. DARK MODE RESPONSIVE FIXES ────────────────── */
body.a11y-dark .hamburger-line {
  background: #eaeaea;
}

body.a11y-high-contrast .hamburger-line {
  background: #ffffff;
}

/* ─── 12. LARGE DESKTOP (1920px) ────────────────────── */
@media (min-width: 1920px) {
  .container {
    max-width: 1480px;
  }

  .job-layout-wrapper {
    max-width: 1600px;
  }
}

/* ─── 13. FILTER SIDEBAR MOBILE TOGGLE ──────────────── */
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid #e0e5ef;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #2d3436;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.filter-toggle-btn:hover {
  border-color: #00b894;
  background: #edfaf5;
  color: #00b894;
}

@media (max-width: 768px) {
  .filter-toggle-btn {
    display: flex;
  }

  .sidebar.filter-collapsed .accordion-body {
    display: none;
  }
}

/* ─── 14. PREVENT HORIZONTAL OVERFLOW ───────────────── */
@media (max-width: 768px) {
  .hero-banners {
    max-width: 100% !important;
  }

  .banner-slide img {
    min-height: 160px !important;
    max-height: 240px;
  }

  /* Side banners: ẩn */
  .side-banner-left,
  .side-banner-right {
    display: none !important;
  }

  .job-layout-wrapper {
    grid-template-columns: 1fr !important;
    display: block !important;
  }

  /* Dropdown menus: ẩn trên mobile (dùng mobile nav) */
  .job-dropdown,
  .cv-nav-dropdown,
  .cv-dropdown {
    display: none !important;
  }
}

/* ─── 15. CV BUILDER & TEMPLATES RESPONSIVE ─────────── */
@media (max-width: 768px) {
  .cvb-layout {
    flex-direction: column !important;
  }

  .cvb-editor,
  .cvb-preview {
    width: 100% !important;
    max-width: 100% !important;
  }

  .cv-grid,
  .template-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .cv-grid,
  .template-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 16. PRICING PAGE RESPONSIVE ───────────────────── */
@media (max-width: 768px) {
  .price-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .price-card {
    max-width: 100% !important;
  }
}

/* ─── 17. COMPANY PAGE RESPONSIVE ───────────────────── */
@media (max-width: 768px) {
  .company-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .company-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 18. JOB DETAIL PAGE RESPONSIVE ────────────────── */
@media (max-width: 768px) {
  .job-detail-layout,
  .jd-layout {
    grid-template-columns: 1fr !important;
  }

  .jd-sidebar {
    order: -1;
  }
}

/* ─── 19. PRO PAGE RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {
  .pro-hero-inner,
  .b2b-hero-inner {
    flex-direction: column !important;
    text-align: center;
  }

  .pro-grid,
  .b2b-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 20. CANDIDATE DATABASE RESPONSIVE ─────────────── */
@media (max-width: 768px) {
  .candidate-database-layout,
  .cdb-layout {
    flex-direction: column !important;
  }

  .cdb-sidebar,
  .candidate-filter-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .cdb-grid,
  .candidates-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── 21. RECRUITER DASHBOARD MOBILE – DEEP RESPONSIVE ──── */

/* ── 21a. Top header không tràn màn hình ── */
@media (max-width: 768px) {
  .top-header {
    padding: 0 12px !important;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .back-home-btn {
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .company-name {
    display: none;
  }

  .recruiter-logout-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}

/* ── 21b. Job row ── */
@media (max-width: 768px) {
  .job-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding: 14px 0;
  }

  .job-row-left {
    width: 100%;
  }

  .job-row > div:last-child {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
  }

  .btn-view-applicants,
  .btn-delete-job {
    flex: 1;
    text-align: center;
  }

  .job-list-card .card-header,
  .applicants-table-card .card-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .job-list-card .card-header button,
  .job-list-card .card-header a {
    width: 100%;
    text-align: center;
  }
}

/* ── 21c. Applicants table – scroll wrapper ── */
@media (max-width: 768px) {
  #recruiter-recent-apps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #recruiter-recent-apps .app-table {
    min-width: 540px;
  }
}

/* Card layout dưới 480px */
@media (max-width: 480px) {
  #recruiter-recent-apps .app-table,
  #recruiter-recent-apps thead,
  #recruiter-recent-apps tbody,
  #recruiter-recent-apps tr,
  #recruiter-recent-apps td,
  #recruiter-recent-apps th {
    display: block;
    width: 100%;
  }

  #recruiter-recent-apps thead {
    display: none;
  }

  #recruiter-recent-apps tr {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
  }

  #recruiter-recent-apps td {
    padding: 4px 0;
    border: none;
    font-size: 13px;
  }

  .app-action-btns {
    flex-wrap: wrap;
    gap: 6px;
  }

  .app-action-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .app-status-select {
    width: 100%;
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* ── 21d. Modal bottom-sheet trên mobile ── */
@media (max-width: 640px) {
  .modal-box,
  #create-job-modal .modal-box,
  #applicants-modal .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    animation: slideUp 0.28s ease !important;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  #create-job-modal,
  #applicants-modal {
    align-items: flex-end !important;
  }
}

/* Form 2 cột → 1 cột trong modal trên mobile */
@media (max-width: 480px) {
  .modal-box [style*="grid-template-columns:1fr 1fr"],
  .modal-box [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ── 21e. Quick actions ── */
@media (max-width: 480px) {
  .quick-action-card {
    padding: 14px 10px;
    gap: 8px;
    flex-direction: row;
    text-align: left;
  }

  .qa-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .qa-label { font-size: 12px; }
  .qa-sub   { font-size: 10px; }
}

/* ── 21f. Kanban ── */
@media (max-width: 480px) {
  .kanban-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .kanban-title-row button {
    width: 100%;
    text-align: center;
  }

  /* Card quick actions luôn visible trên mobile */
  .card-quick-actions {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: none !important;
    padding: 8px 0 0 !important;
    display: flex !important;
  }
}

/* ── 21g. Stat số không bị vỡ ── */
@media (max-width: 360px) {
  .stat-num   { font-size: 22px !important; }
  .stat-label { font-size: 11px; }
  .stat-badge { font-size: 9px; padding: 2px 6px; }
}

/* ── 21h. Chart canvas ── */
@media (max-width: 768px) {
  .chart-card canvas { max-height: 200px !important; }
}

/* ── 21i. Text overflow guard ── */
@media (max-width: 768px) {
  .job-title,
  .candidate-name,
  .candidate-role,
  .job-meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
  }

  .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .job-title,
  .candidate-name {
    max-width: 160px;
  }
}
