/* Mobile Navigation & Mobile Job Detail Layout */

@media (max-width: 850px) {
  /* Topbar Consistency */
  .topbar {
    height: 70px !important;
    background: #ffffff !important;
  }

  .topbar .nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .topbar .brand img {
    height: 32px !important;
    width: auto !important;
    max-width: 150px !important;
  }

  .topbar .hamb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin-left: auto !important;
    background: transparent !important;
    border: none !important;
    color: #1e293b !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  /* Mobile Menu Drawer */
  .topbar .links {
    display: none;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #ffffff !important;
    padding: 20px 16px 40px !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
  }

  .topbar .links.open {
    display: flex !important;
  }

  .topbar .mobile-nav-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .topbar .mobile-btn-auth {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  .topbar .mobile-btn-auth:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
  }

  .topbar .mobile-btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #b00008 0%, #cf111b 100%) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(176, 0, 8, 0.25) !important;
    box-sizing: border-box !important;
  }

  /* Job Detail Hero - Center Alignment in Mobile View */
  .detail-exact .detail-hero:not(.employer-hero) {
    min-height: 0;
    padding: 24px 16px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #edf2f7;
    box-sizing: border-box;
    text-align: center;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-logo-card {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 14px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-title {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-title h1 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-meta span,
  .detail-exact .detail-hero:not(.employer-hero) .detail-meta .detail-meta-link,
  .detail-exact .detail-hero:not(.employer-hero) .detail-meta .detail-meta-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: normal;
    text-align: center;
    color: #475569;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-meta .detail-meta-item .detail-meta-link {
    display: inline;
    color: #475569;
  }
  .detail-exact .detail-hero:not(.employer-hero) .detail-meta .detail-meta-item .detail-meta-link:hover {
    color: #b91c1c;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-meta .meta-icon {
    width: 15px;
    height: 15px;
    color: #64748b;
    stroke: #64748b;
    flex-shrink: 0;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    background: #fee2e2;
    color: #b00008;
    margin: 0 auto 2px;
    text-align: center;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 14px auto 0;
    box-sizing: border-box;
  }

  .detail-exact .detail-hero:not(.employer-hero) .apply {
    flex: 1 1 200px;
    width: auto;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #b00008 0%, #cf111b 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(176, 0, 8, 0.25);
    border: none;
    text-decoration: none;
  }

  .detail-exact .detail-hero:not(.employer-hero) .save {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .detail-exact .detail-hero:not(.employer-hero) .save svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: #64748b;
  }

  /* Small Corner Report Button on Mobile */
  .detail-exact .detail-hero:not(.employer-hero) .detail-hero-inner {
    position: relative !important;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-report-job-btn,
  .detail-exact .detail-hero:not(.employer-hero) .detail-report-corner-btn {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: auto !important;
    flex: none !important;
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 550 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    z-index: 10 !important;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-report-job-btn span,
  .detail-exact .detail-hero:not(.employer-hero) .detail-report-corner-btn span {
    display: inline !important;
    font-size: 11px !important;
    color: inherit !important;
    font-weight: 550 !important;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-report-job-btn svg,
  .detail-exact .detail-hero:not(.employer-hero) .detail-report-corner-btn svg {
    width: 11px !important;
    height: 11px !important;
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-report-job-btn:hover,
  .detail-exact .detail-hero:not(.employer-hero) .detail-report-corner-btn:hover {
    color: #b00008 !important;
    border-color: #fecdd3 !important;
    background: #ffffff !important;
  }

  .detail-exact .detail-hero:not(.employer-hero) .detail-report-job-btn:hover svg,
  .detail-exact .detail-hero:not(.employer-hero) .detail-report-corner-btn:hover svg {
    color: #b00008 !important;
  }

  .detail-exact .detail-grid:not(.employer-detail-grid) {
    padding: 24px 16px 60px;
    box-sizing: border-box;
    max-width: 100%;
  }

  .detail-exact .detail-grid:not(.employer-detail-grid) .job-description {
    padding: 0;
  }

  .detail-exact .detail-grid:not(.employer-detail-grid) .detail-sidebar { display: contents; }
  .detail-exact .detail-grid:not(.employer-detail-grid) .overview { order: -1; padding: 20px; }
  .detail-exact .detail-grid:not(.employer-detail-grid) .job-description { order: 0; }
  .detail-exact .detail-grid:not(.employer-detail-grid) .detail-sidebar > :not(.overview) { order: 1; }
  .detail-exact .overview-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  .detail-exact .overview-item { grid-column: 1 / -1; margin: 0; min-width: 0; }
  .detail-exact .overview-location { grid-column: 1; grid-row: 1; }
  .detail-exact .overview-type { grid-column: 2; grid-row: 1; }
  .detail-exact .overview-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; }
  .detail-exact .overview-title { font-size: 10px; }
  .detail-exact .overview-val { font-size: 14px; line-height: 1.5; }
  .detail-exact .detail-grid:not(.employer-detail-grid) .job-desc-heading {
    margin-bottom: 16px;
    font-size: 17px;
    font-weight: 700;
  }
}
