/* ================= ROOT ================= */
/* ===== JOB LIST UI ===== */
.ttj-ui{
  max-width:1200px;
  margin:0 auto;
  padding:40px 15px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:#1e293b;
}

.ttj-ui a{ text-decoration:none }

/* ================= HEADER ================= */
.ttj-header h1{
  font-size:28px;
  font-weight:700;
  margin:0 0 6px;
}
.ttj-header p{
  color:#64748b;
  margin-bottom:24px;
}

/* ================= FILTER BAR ================= */
.ttj-filters{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:18px;
  display:grid;
  grid-template-columns:2fr 1.5fr 1.5fr auto;
  gap:14px;
  align-items:center;
  box-shadow:0 30px 80px rgba(0,0,0,.06);
  margin-bottom:26px;
}
.ttj-field{
  position:relative;
}
.ttj-field svg{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  stroke:#94a3b8;
}
.ttj-field input,
.ttj-field select{
  width:100%;
  height:44px;
  padding:0 14px 0 44px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  font-size:14px;
}
.ttj-filter-btn{
  height:44px;
  padding:0 20px;
  border-radius:10px;
  background:#0056d2;
  color:#fff;
  border:none;
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  cursor:pointer;
}
.ttj-filter-btn svg{ stroke:#fff }

/* ================= JOB CARD ================= */
.ttj-job{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:28px;
  box-shadow:0 30px 80px rgba(0,0,0,.06);
  display:flex;
  justify-content:space-between;
  gap:24px;
}
.ttj-job-left{ flex:1 }
.ttj-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.ttj-cat{
  background:#e8f2ff;
  color:#0056d2;
  font-size:13px;
  padding:6px 12px;
  border-radius:8px;
  font-weight:600;
}
.ttj-title{
  font-size:20px;
  font-weight:600;
  margin-bottom:8px;
}
.ttj-desc{
  color:#64748b;
  margin-bottom:14px;
}
.ttj-meta{
  display:flex;
  gap:20px;
  font-size:14px;
}

.ttj-job-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.ttj-featured{
  background:#facc15;
  font-size:13px;
  padding:6px 12px;
  border-radius:999px;
  font-weight:600;
}
.ttj-view{
  background:#0056d2;
  color:#fff;
  padding:10px 18px;
  border-radius:10px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
}

/* ================= EMPTY ================= */
.ttj-empty{
  background:#fff;
  border:1px dashed #cbd5e1;
  border-radius:16px;
  padding:48px 20px;
  text-align:center;
  color:#64748b;
  box-shadow:0 20px 60px rgba(0,0,0,.05);
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){
  .ttj-filters{ grid-template-columns:1fr }
  .ttj-filter-btn{ justify-content:center }
  .ttj-job{
    flex-direction:column;
  }
  .ttj-job-right{
    flex-direction:row;
    justify-content:space-between;
    width:100%;
  }
}

/* =====================================================
   JOB POST FORM — ENTERPRISE UI (WORLD-CLASS)
===================================================== */

.ttj-post-job-form {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px;

  background: #ffffff;
  border-radius: 16px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =====================================================
   FIELD ROW LAYOUT
===================================================== */

.ttj-field-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;

  align-items: center;
  margin-bottom: 22px;
}

/* =====================================================
   LABELS
===================================================== */

.ttj-field-row label {
  font-size: 14px;
  font-weight: 600;
  color: #111827; /* near-black */

  line-height: 1.4;
}

/* Optional helper text */
.ttj-field-row .ttj-help {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

/* =====================================================
   INPUTS / SELECTS
===================================================== */

.ttj-field-row input,
.ttj-field-row select,
.ttj-field-row textarea {
  width: 100%;
  padding: 12px 14px;

  font-size: 14px;
  font-weight: 500;
  color: #111827;

  background: #ffffff;

  border: 1px solid #d1d5db;
  border-radius: 10px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* Placeholder */
.ttj-field-row input::placeholder,
.ttj-field-row textarea::placeholder {
  color: #9ca3af;
}

/* Focus state — enterprise grade */
.ttj-field-row input:focus,
.ttj-field-row select:focus,
.ttj-field-row textarea:focus {
  outline: none;

  border-color: #2563eb;
  background-color: #ffffff;

  box-shadow:
    0 0 0 1px #2563eb,
    0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Disabled */
.ttj-field-row input:disabled,
.ttj-field-row select:disabled,
.ttj-field-row textarea:disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

/* =====================================================
   SELECT (CLEAN, NATIVE, POLISHED)
===================================================== */

.ttj-field-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;

  padding-right: 40px;
}

/* =====================================================
   TEXTAREA / EDITOR
===================================================== */

.ttj-editor {
  align-items: flex-start;
}

.ttj-editor-wrap {
  width: 100%;
}

.ttj-editor textarea,
.ttj-editor .wp-editor-area {
  min-height: 140px;
  resize: vertical;
}

/* =====================================================
   FORM SECTIONS (OPTIONAL, RECOMMENDED)
===================================================== */

.ttj-form-section {
  margin-bottom: 36px;
}

.ttj-form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 18px;
}

/* =====================================================
   ACTION BUTTONS
===================================================== */

.ttj-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.ttj-form-actions button {
  padding: 12px 20px;

  font-size: 14px;
  font-weight: 600;

  border-radius: 10px;
  border: none;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}

.ttj-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.ttj-btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.ttj-btn-primary:active {
  transform: translateY(1px);
}

/* =====================================================
   VALIDATION STATES (ENTERPRISE UX)
===================================================== */

.ttj-field-error input,
.ttj-field-error select,
.ttj-field-error textarea {
  border-color: #dc2626;
}

.ttj-field-error input:focus,
.ttj-field-error select:focus,
.ttj-field-error textarea:focus {
  box-shadow:
    0 0 0 1px #dc2626,
    0 0 0 4px rgba(220, 38, 38, 0.15);
}

.ttj-error-text {
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
}

/* =====================================================
   RESPONSIVE (MOBILE / TABLET)
===================================================== */

@media (max-width: 768px) {

  .ttj-post-job-form {
    padding: 20px;
    border-radius: 14px;
  }

  .ttj-field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ttj-field-row label {
    font-size: 13px;
  }

  .ttj-form-actions {
    flex-direction: column;
  }

  .ttj-form-actions button {
    width: 100%;
  }
}

.ttj-field-row input,
.ttj-field-row select {
  height: 46px;
}

/* =====================================
   JOB POST FORM TITLE — FULL WIDTH
===================================== */

.ttj-post-job-form {
  position: relative;
}

/* Title bar */
.ttj-post-job-form .ttj-form-title {
  margin: 0;
  padding: 20px 28px;

  font-size: 22px;
  font-weight: 700;
  color: #ffffff;

  background: linear-gradient(
    90deg,
    #0b5ed7 0%,
    #2563eb 50%,
    #3b82f6 100%
  );

  /* 🔥 KEY PART */
  width: calc(100% + 64px);
  margin-left: -32px;
  margin-right: -32px;
  margin-top: -32px;
  margin-bottom: 32px;

  border-radius: 16px 16px 0 0;
}

/* Mobile */
@media (max-width: 768px) {
  .ttj-post-job-form .ttj-form-title {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
    margin-bottom: 20px;

    padding: 16px 20px;
    font-size: 20px;
  }
}

.ttj-alert {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.ttj-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.ttj-alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
}

.ttj-alert ul {
    margin: 10px 0 0 18px;
}

.ttj-alert {
    position: relative;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.ttj-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.ttj-alert-close {
    position: absolute;
    top: 10px;
    right: 12px;

    background: none !important;
    border: none !important;
    box-shadow: none !important;

    padding: 0;
    margin: 0;

    font-size: 22px;
    line-height: 1;
    font-weight: 600;

    color: inherit;
    cursor: pointer;
}

.ttj-alert-close:hover,
.ttj-alert-close:focus {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0.8;
    color: inherit;
}

/* HEADER */
.ttj-header h1{
    font-size:26px;
    font-weight:700;
    margin-bottom:6px;
}
.ttj-header p{
    color:#64748b;
    margin-bottom:24px;
}

/* FILTERS */
.ttj-filters{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:18px;
    display:grid;
    grid-template-columns:2fr 1.5fr 1.5fr auto;
    gap:14px;
    margin-bottom:26px;
    box-shadow:0 25px 70px rgba(0,0,0,.06);
}
.ttj-field input,
.ttj-field select{
    width:100%;
    height:44px;
    border-radius:10px;
    border:1px solid #e2e8f0;
    padding:0 14px;
}
.ttj-filter-btn{
    height:44px;
    padding:0 20px;
    border-radius:10px;
    background:#0056d2;
    color:#fff;
    border:none;
    font-weight:600;
}

/* ===============================
   JOB CARDS
================================ */
.ttj-job-card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding: 28px 32px;
    margin-bottom:22px;
    display:flex;
    justify-content:space-between;
    gap:24px;
    box-shadow:0 25px 70px rgba(0,0,0,.06);
}

.ttj-job-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 0;
}

.ttj-job-left {
    flex: 1;
}

.ttj-category{
    background:#e8f2ff;
    color:#0056d2;
    font-size:13px;
    padding:6px 12px;
    border-radius:8px;
    font-weight:600;
}

.ttj-job-desc{
    color:#64748b;
    margin-bottom:14px;
}

.ttj-job-meta{
    display:flex;
    gap:20px;
    font-size:14px;
    color:#475569;
}

/* RIGHT */
.ttj-job-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:space-between;
}

.ttj-view-job{
    background:#0056d2;
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    font-weight:600;
    text-decoration:none;
}

/* FEATURED */
.ttj-featured-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 8px;
}
.ttj-job-card.is-featured{
    border-color:#facc15;
}

/* EMPTY */
.ttj-empty{
    background:#fff;
    border:1px dashed #cbd5e1;
    border-radius:16px;
    padding:48px 20px;
    text-align:center;
    color:#64748b;
}

/* MOBILE */
@media(max-width:768px){
    .ttj-filters{ grid-template-columns:1fr; }
    .ttj-job-card{ flex-direction:column; }
    .ttj-job-right{
        flex-direction:row;
        width:100%;
        align-items:center;
    }
}

/* BADGES */
.ttj-job-top .ttj-badge {
  display: inline-block;
  padding: 6px 12px 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  margin-right: 8px;
  align-items: center;
  margin-left: 0;
  margin-bottom: 5px;
}

.ttj-single-header .ttj-badge {
  display: inline-block;
  padding: 6px 12px 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  margin-right: 8px;
  align-items: center;
  margin-left: 0;
  margin-bottom: 5px;
}

.ttj-job-left .ttj-badge {
  display: inline-block;
  padding: 6px 12px 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eff6ff;
  color: #2563eb;
  margin-right: 8px;
  align-items: center;
  margin-left: 0;
  margin-bottom: 15px;
}

.ttj-time{
    display:inline-flex;
    align-items:center;
    gap:6px;

    font-size:13px;
    color:#64748b;
    line-height:1;
    margin-bottom: 20px;
}

.ttj-time svg{
    width:16px;
    height:16px;

    display:block;
    flex-shrink:0;

    stroke:currentColor;
    fill:none;
    stroke-width:2;

    /* 🔥 Optical correction */
    position:relative;
    top:3px;
}

.ttj-job-meta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.ttj-single-time {
  font-size: 14px;
  color: #64748b;
}

.ttj-job-desc {
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.6;
}

.ttj-job-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #334155;
}

.ttj-job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ttj-job-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    min-width: 160px;
}

/* FEATURED */
.ttj-featured {
    background: #fde68a;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

/* FEATURED CARD BORDER */
.ttj-job-card.is-featured {
    border-color: #facc15;
    box-shadow: 0 30px 80px rgba(250,204,21,.25);
}

/* MOBILE */
@media (max-width: 768px) {
    .ttj-job-card {
        flex-direction: column;
    }

    .ttj-job-right {
        align-items: flex-start;
    }
}

/* =========================
   SALARY STYLE
========================= */
.ttj-salary {
    color: #16a34a;            /* green */
    font-weight: 700;          /* bold */
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ttj-salary svg {
    width: 16px;
    height: 16px;
    stroke: #16a34a;
    fill: none;
    stroke-width: 2;
}

.ttj-filters {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr auto;
    gap: 14px;
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.ttj-field {
    position: relative;
}

.ttj-field input,
.ttj-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ttj-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    font-size: 14px;
}

.ttj-filter-btn {
    height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    background: #0056d2;
    color: #fff;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.ttj-filter-btn:hover {
    background: #0046ad;
    color: #fff;
}

/* =========================
   FILTER ICONS
========================= */
.ttj-field{
    position:relative;
}

.ttj-field .ttj-ico{
    position:absolute;
    left:14px;
    top:50%;
    width:18px;
    height:18px;
    transform:translateY(-50%);
    fill:none;
    stroke:#94a3b8;
    stroke-width:2;
    pointer-events:none;
}

.ttj-field input,
.ttj-field select{
    padding-left:44px;
}

/* =========================
   MOBILE FILTER STACK
========================= */
@media (max-width: 768px) {

    .ttj-filters{
        display:flex;
        flex-direction:column;
        gap:14px;
    }

    /* MAKE FIELDS FULL WIDTH */
    .ttj-filters .ttj-field{
        width:100%;
    }

    .ttj-filters .ttj-field input,
    .ttj-filters .ttj-field select{
        width:100%;
    }

    /* BUTTON FULL WIDTH */
    .ttj-filter-btn{
        width:100%;
        justify-content:center;
        text-align:center;
    }
}

/* =========================
   FEATURED JOB CARD
========================= */
.ttj-job-card.is-featured {
    border: 2px solid #2563eb;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    position: relative;
}

/* Featured badge (top-right) */
.ttj-featured {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

/* Slight emphasis on title */
.ttj-job-card.is-featured .ttj-job-title {
    color: #1e40af;
}

/* Salary emphasis stays */
.ttj-salary {
    color: #16a34a;
    font-weight: 700;
}

/* ===============================
   SINGLE JOB – ENTERPRISE
================================ */

.ttj-single-wrap {
  width: 100%;
  max-width: 100%;
  margin: 40px 0;
  padding: 0 40px;
}

/* =========================================
   MOBILE ICON MODE
========================================= */

@media (max-width:1024px){
    .ttj-single-wrap {
      width: 100%;
      max-width: 100%;
      margin: 40px 0;
      padding: 0;
    }
}

.ttj-single-card {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,.08);
}

/* ================================
   HEADER
================================ */
.ttj-single-header {
  margin-bottom: 28px;
}

.ttj-single-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0 6px;
}

.ttj-single-meta {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
}

/* ================================
   CONTENT
================================ */
.ttj-single-content {
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
  margin-bottom: 32px;
}

/* CTA */
.ttj-single-cta {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    text-align: right;
}

.ttj-apply-btn {
    background: #0056d2;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.ttj-apply-btn:hover {
    background: #0046b5;
}

.ttj-btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ttj-btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

/* ================================
   META GRID
================================ */
.ttj-job-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.ttj-info-item strong {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}

.ttj-info-item span {
  font-size: 15px;
  font-weight: 600;
}

/* ================================
   CONTACT BOX
================================ */
.ttj-contact-box {
  background: #f8fafc;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 28px;
}

.ttj-contact-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.ttj-contact-box p {
  margin: 6px 0;
  font-size: 15px;
}

.ttj-muted {
  font-size: 14px;
  color: #64748b;
}

/* ===============================
   MODAL
================================ */

.ttj-modal {
    display: none;
}

.ttj-modal.is-open {
    display: block;
}

.ttj-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999;
}

.ttj-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 100%;
    max-width: 560px;
    border-radius: 18px;
    padding: 30px;
    z-index: 1000;
    box-shadow: 0 40px 120px rgba(0,0,0,.25);
}

.ttj-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
}

/* MOBILE */
@media (max-width: 640px) {
    .ttj-single-card {
        padding: 22px;
        margin: 0 10px;
    }

    .ttj-single-title {
        font-size: 22px;
    }

    .ttj-single-cta {
        text-align: center;
    }

    .ttj-apply-btn {
        width: 100%;
    }
}

/* ================================
   APPLY JOB POPUP FORM
================================ */

.ttj-modal {
  max-width: 520px;
  width: 92%;
  padding: 28px;
}

.ttj-form-group {
  margin-bottom: 18px;
}

.ttj-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.ttj-form-group input,
.ttj-form-group textarea {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
}

.ttj-form-group textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

/* ================================
   APPLY POPUP OVERLAY
================================ */
.ttj-apply-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ttj-apply-popup.active {
    display: flex;
}

/* LOCK SCROLL WITHOUT SHIFT */
body.ttj-modal-open {
    overflow: hidden;
    padding-right: var(--ttj-scrollbar-width);
}


/* ================================
   APPLY BOX
================================ */
.ttj-apply-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 40px 120px rgba(0,0,0,.2);
}


/* ================================
   TITLE
================================ */
.ttj-apply-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}


/* ================================
   CLOSE BUTTON (PURE X)
================================ */
.ttj-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ttj-modal-close:hover,
.ttj-modal-close:focus,
.ttj-modal-close:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #000;
    outline: none;
}


/* ================================
   FORM FIELDS
================================ */
.ttj-form-group {
    margin-bottom: 18px;
}

.ttj-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.ttj-form-group input,
.ttj-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
}

.ttj-form-group textarea {
    min-height: 120px;
    resize: vertical;
}


/* ================================
   SUBMIT BUTTON
================================ */
.ttj-submit-btn {
    width: 100%;
    height: 48px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

/* KEEP TEXT WHITE ALWAYS */
.ttj-submit-btn:hover,
.ttj-submit-btn:focus,
.ttj-submit-btn:active {
    background: #2563eb;
    color: #ffffff;
    outline: none;
}

/* ================================
   FORM MESSAGES
================================ */
.ttj-form-message {
    margin-bottom: 16px;
}

.ttj-success-msg {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.ttj-error-msg {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #7f1d1d;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.ttj-applied-status {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #16a34a;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 24px;
  font-size: 15px;
}

.ttj-success-msg {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

/* INLINE STATUS */
.ttj-form-status.success { color: #16a34a; font-weight: 600; }
.ttj-form-status.error   { color: #dc2626; font-weight: 600; }

/* DISABLED BUTTON */
.ttj-btn-disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ANIMATION */
@keyframes ttj-toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CARD */
.ttj-applied-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
}

/* MAIN ROW */
.ttj-applied-row {
  display: flex;
  align-items: center; /* 🔥 MIDDLE ALIGN */
  justify-content: space-between;
  gap: 20px;
}

/* LEFT */
.ttj-applied-main {
  flex: 1;
  display: flex;
  align-items: center;
}

.ttj-applied-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

/* META */
.ttj-applied-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #475569;
}

.ttj-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* OUTLINED ICONS (SAME STYLE AS POSTED JOBS) */
.ttj-i {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: .75;
}

/* RIGHT ACTIONS */
.ttj-applied-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

/* STATUS */
.ttj-status-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.status-applied {
  background: #e0e7ff;
  color: #3730a3;
}

/* MOBILE */
@media (max-width: 768px) {
  .ttj-applied-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ttj-applied-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }
}

/* SVG ICON BASE */
.ttj-i {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-color: #64748b; /* outline color */
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* LOCATION */
.ttj-i-location {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 21s7-4.35 7-11a7 7 0 1 0-14 0c0 6.65 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* CLOCK */
.ttj-i-clock {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
}

/* MONEY */
.ttj-i-money {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 1v22'/%3E%3Cpath d='M17 5H9a3 3 0 0 0 0 6h6a3 3 0 0 1 0 6H6'/%3E%3C/svg%3E");
}

/* USER */
.ttj-i-user {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5.5 21a6.5 6.5 0 0 1 13 0'/%3E%3C/svg%3E");
}

/* EMAIL */
.ttj-i-email {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}

/* HOME */
.ttj-i-home {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
}

/* =========================================
   VIEW JOB LINK – CLEAN, NO DECORATION
========================================= */
.ttj-view-job-link,
.ttj-view-job-link:link,
.ttj-view-job-link:visited,
.ttj-view-job-link:hover,
.ttj-view-job-link:focus,
.ttj-view-job-link:active {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    color: #2563eb;            /* brand blue */
    font-weight: 500;
    cursor: pointer;
}

/* Optional: subtle hover (NO underline) */
.ttj-view-job-link:hover {
    opacity: 0.85;
}

a { text-decoration: underline; }

a { text-decoration: underline; }

/* =========================================
   APPLICATION STATUS BADGES
========================================= */
.ttj-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px; /* pill */
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

/* APPLIED */
.ttj-status-applied {
    background: #eef2ff;       /* soft indigo */
    color: #3730a3;
}

/* ACCEPTED */
.ttj-status-accepted {
    background: #ecfdf5;       /* soft green */
    color: #065f46;
}

/* REJECTED */
.ttj-status-rejected {
    background: #fef2f2;       /* soft red */
    color: #991b1b;
}

/* =========================
   APPLICATION STATUS COLORS
========================= */

/* BASE */
.ttj-status-badge,
.ttj-status-select {
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
}

/* APPLIED */
.status-applied,
.ttj-status-select option[value="Applied"] {
  background: #eef2ff;
  color: #1e3a8a;
}

/* ACCEPTED */
.status-accepted,
.ttj-status-select option[value="Accepted"] {
  background: #dcfce7;
  color: #166534;
}

/* REJECTED */
.status-rejected,
.ttj-status-select option[value="Rejected"] {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================
   STATUS PILL (CLICKABLE)
========================= */

.ttj-status-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 14px;
  border-radius: 20px;

  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

/* COLORS */
.ttj-status-pill.applied  { background: #2563eb; }
.ttj-status-pill.accepted { background: #16a34a; }
.ttj-status-pill.rejected { background: #dc2626; }

/* LABEL */
.ttj-status-label {
  pointer-events: none; /* select handles clicks */
}

/* ARROW ICON */
.ttj-status-arrow {
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

/* SELECT OVERLAY (THE KEY) */
.ttj-status-select {
  position: absolute;
  inset: 0;                 /* cover entire pill */
  opacity: 0;               /* invisible */
  cursor: pointer;

  /* keep native dropdown */
  appearance: auto;
}

/* DROPDOWN OPTIONS SPACING */
.ttj-status-select option {
  padding: 8px 14px;
  background: #ffffff;
  color: #000000;
}

/* INITIAL STATUS FROM data-status */
.ttj-status-pill[data-status="applied"] {
  background: #2563eb;
  color: #ffffff;
}

.ttj-status-pill[data-status="accepted"] {
  background: #16a34a;
  color: #ffffff;
}

.ttj-status-pill[data-status="rejected"] {
  background: #dc2626;
  color: #ffffff;
}

.ttj-status-arrow {
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.ttj-status-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* =========================================
   GLOBAL TOAST BASE
========================================= */

.ttj-toast {

  position: fixed !important;
  top: 50% !important;
  left: 50% !important;

  transform: translate(-50%, -50%) scale(0.96) !important;

  min-width: 220px;
  max-width: 340px;
  width: auto;

  padding: 12px 18px;

  background: #000000;   /* SOLID BLACK */
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  text-align: center;

  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;

  z-index: 999999;
}

.ttj-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* =========================================
   STATUS VARIANTS (KEEP BLACK)
========================================= */

.ttj-toast-success {
  background: rgba(0, 0, 0, 0.85);
}

.ttj-toast-error {
  background: rgba(0, 0, 0, 0.85);
}

/* =========================================
   MOBILE TWEAK
========================================= */

@media (max-width: 599px) {
  .ttj-toast {
    font-size: 13px;
    padding: 11px 16px;
    max-width: 90vw;
    border-radius: 10px;
  }
}

/* =====================================
   FILTER BUTTON LOADER
===================================== */

.ttj-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ttj-btn-loader {
  width: 16px;
  height: 16px;

  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;

  animation: ttj-spin 0.7s linear infinite;
}

@keyframes ttj-spin {
  to { transform: rotate(360deg); }
}

.ttj-btn.loading {
  pointer-events: none;
  opacity: 0.85;
  cursor: wait;
}

.ttj-upgrade-hint {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.ttj-upgrade-hint strong {
  color: #111827;
}

.ttj-upgrade-hint a {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* ===========================
   SINGLE JOB – FOOTER ACTIONS
=========================== */

.ttj-single-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

/* Back link */
.ttj-back-link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

/* Mobile – keep same logic */
@media (max-width: 640px) {
    .ttj-single-footer {
        gap: 14px;
    }
}

.ttj-pagination {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.ttj-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ttj-pagination li a,
.ttj-pagination li span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    color: #2563eb;
    background: #fff;
}

.ttj-pagination li span.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.ttj-pagination li a:hover {
    background: #eef4ff;
}

.ttj-pagination li.active a {
    background: #2563eb;
    color: #fff;
    pointer-events: none;
}

.ttj-badge-expiry {
    background: #eef4ff;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
}

.ttj-badge-expiry[data-urgent="1"] {
    background: #fff1f2;
    color: #991b1b;
}

.ttj-badge-expiry svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.ttj-file-input {
  position: relative;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.ttj-file-input span {
  color: #6b7280;
}

.ttj-file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ttj-file-input span {
  display: inline-block;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.ttj-view-job-disabled {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-weight: 600;
    gap: 4px;
}

.ttj-notification-locked {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.ttj-locked {
    opacity: 0.6;
    pointer-events: none;
}

/* =========================================
   APPLIED PAGE – FORCE FULL WIDTH
========================================= */

/* Force wrapper full width */
.ttj-applied-scope{
    width:100% !important;
    max-width:100% !important;
}

/* Remove theme container restriction */
.ttj-applied-scope{
    margin-left:0 !important;
    margin-right:0 !important;
}

/* If theme wraps content inside container */
.page .ttj-applied-scope,
.entry-content .ttj-applied-scope,
.content-area .ttj-applied-scope{
    max-width:100% !important;
    width:100% !important;
}

/* If grid wrapper exists */
.ttj-applied-jobs-grid{
    width:100% !important;
    max-width:100% !important;
}

/* Ensure cards stretch */
.ttj-applied-card{
    width:100% !important;
}

/* ===== AUTH REQUIRED MESSAGE ===== */

.ttj-auth-required{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:90px 20px;
}

.ttj-auth-box{
    background:#fff;
    border-radius:18px;
    padding:45px 40px;
    max-width:460px;
    text-align:center;
}

.ttj-auth-box h3{
    font-size:22px;
    margin-bottom:10px;
    font-weight:700;
    color:#111;
}

.ttj-auth-box p{
    font-size:15px;
    color:#555;
    margin-bottom:24px;
}

.ttj-auth-actions{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

/* LOGIN BUTTON */
.ttj-btn-login{
    padding:12px 26px;
    border-radius:10px;
    background:linear-gradient(135deg,#1f73e8,#1558b0);
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s ease;
}

.ttj-btn-login:hover{
    filter:brightness(1.08);
    color:#fff;
}

/* REGISTER BUTTON */
.ttj-btn-register{
    padding:12px 26px;
    border-radius:10px;
    border:1px solid #1f73e8;
    color:#1f73e8;
    text-decoration:none;
    font-weight:600;
    background:#fff;
    transition:.3s ease;
}

.ttj-btn-register:hover{
    background:#f3f8ff;
}

/* ======================================
   Applied Jobs Header – Alignment Fix
====================================== */

.ttj-applied-header{
    margin-top: 30px;
    margin-bottom:30px;
    padding:30px 0;
    border-bottom:1px solid #e5e7eb;
}

/* THIS FIXES VERTICAL ALIGNMENT */
.ttj-applied-header-top{
    display:flex;
    justify-content:space-between;
    align-items:center; /* 👈 muhimu sana */
    flex-wrap:wrap;
    gap:12px;
}

.ttj-applied-title-wrap{
    display:flex;
    align-items:center; /* 👈 ensures icon + text same middle line */
    gap:12px;
}

.ttj-applied-title-wrap h2{
    font-size:26px;
    font-weight:700;
    margin-top:20px;
    line-height:1.2; /* 👈 prevent text pushing up */
    color:#111;
    line-height:1;        /* muhimu */
    display:flex;         /* muhimu */
    align-items:center;   /* muhimu */
}

.ttj-applied-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    background:#eef4ff;
    border-radius:12px;
}

.ttj-applied-icon svg{
    width:20px;
    height:20px;
    stroke:#1f73e8;
    fill:none;
    stroke-width:2;
}

.ttj-applied-sub{
    margin-top:8px;
    font-size:14px;
    color:#666;
}

.ttj-applied-count{
    background:#eef4ff;
    color:#1f73e8;
    font-size:13px;
    font-weight:600;
    padding:6px 14px;
    border-radius:999px;
}

/* Responsive */
@media (max-width:768px){
    .ttj-applied-title-wrap h2{
        font-size:22px;
    }
    .ttj-applied-header{
        padding-top: 50px;
    }
}

/* ===== URGENCY FIELD ===== */

.ttj-urgency-select{
    color:#111;
    font-weight:600;
}

.ttj-urgency-select option{
    color:#111;
}

.ttj-urgency-select:focus{
    border-color:#b91c1c;
    box-shadow:0 0 0 2px rgba(185,28,28,0.15);
}

.ttj-urgency-badge{
    display:inline-block;
    background:#fee2e2;
    color:#b91c1c;
    font-weight:600;
    padding:3px 10px 4px 10px;
    border-radius:999px;
    font-size:13px;
}

@media (max-width:1024px){
    .ttj-urgency-badge{
        margin-top: 15px;
    }
}

.ttj-urgency{
    color: #b91c1c; 
    font-weight: 700; 
}

/* ===== CONSENT FIELD ===== */

.ttj-consent-row{
    margin-top:10px;
}

.ttj-consent-label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14px;
    color:#555;
    line-height:1.5;
}

.ttj-consent-label input{
    margin-top:4px;
    width:16px;
    height:16px;
    accent-color:#1f73e8;
}

.ttj-consent-label a{
    color:#1f73e8;
    text-decoration:underline;
}

.ttj-consent-label a:hover{
    opacity:0.8;
}

.ttj-pref-wrapper{
    max-width:500px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.ttj-pref-wrapper h2{
    margin-bottom:20px;
}

.ttj-pref-item{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
    font-size:15px;
}

.ttj-pref-success{
    background:#e6f4ea;
    color:#166534;
    padding:12px;
    border-radius:8px;
    margin-bottom:20px;
}

.ttj-notif-settings{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:10px;
    color:#6b7280;
    transition:all .2s ease;
    border: #dadfe8;
    border-width: 1px;
    border-style: solid;
}

.ttj-notif-settings svg{
    width:20px;
    height:20px;
}

.ttj-notif-settings:hover{
    background:#eef4ff;
    color:#1f73e8;
    border: #eef4ff;
    border-width: 1px;
    border-style: solid;
}

.ttj-push-slidein{
    position:fixed;
    bottom:20px;
    right:20px;
    width:320px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    border-radius:14px;
    padding:16px;
    transform:translateY(120%);
    transition:.4s ease;
    z-index:9999;
}

.ttj-push-slidein.show{
    transform:translateY(0);
}

.ttj-push-content{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.ttj-push-icon{
    font-size:22px;
}

.ttj-push-text p{
    margin:0;
    font-size:14px;
    color:#555;
}

.ttj-push-actions{
    display:flex;
    gap:8px;
}

.ttj-push-actions button{
    flex:1;
    padding:8px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

#ttj-enable-push{
    background:#1f73e8;
    color:#fff;
}

#ttj-later-push{
    background:#f3f4f6;
}

.ttj-name-badge{
    font-size:14px;
    font-weight:600;
    padding:6px 10px;
    border-radius:6px;
    margin-left:10px;
    display:inline-block;
    vertical-align:middle;
}

.ttj-badge-verified{
    background:#e0f2fe;
    color:#0369a1;
}

.ttj-badge-trusted{
    background:#dcfce7;
    color:#166534;
}

.ttj-trust-pills{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:10px;
}

.ttj-trust-pills .ttj-pill{
    font-size:12px;
    font-weight:500;
    padding:4px 8px;
    border-radius:20px;
    background:#f1f5f9;
    color:#334155;
    display:inline-flex;
    align-items:center;
    gap:4px;
}

.ttj-trust-pills .ttj-pill .ttj-check{
    color:#16a34a !important;
    font-weight:700;
}

/* ===== TRUST BADGE IMAGE VERSION ===== */

.ttj-trust-badge{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 3px;
    vertical-align: middle;
    cursor: default;
}

.ttj-trust-badge img{
    width:15px;
    height:15px;
    display:block;
}


/* ===== TOOLTIP ZERO DELAY ===== */

.ttj-trust-badge::after{
    content: attr(data-tooltip);
    position:absolute;
    bottom:125%;
    left:50%;
    transform:translateX(-50%);
    background:#111827;
    color:#ffffff;
    padding:6px 8px;
    font-size:11px;
    border-radius:6px;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:none;
    z-index:9999;
}

.ttj-trust-badge::before{
    content:'';
    position:absolute;
    bottom:118%;
    left:50%;
    transform:translateX(-50%);
    border:5px solid transparent;
    border-top-color:#111827;
    opacity:0;
    pointer-events:none;
    transition:none;
}

.ttj-trust-badge:hover::after,
.ttj-trust-badge:hover::before{
    opacity:1;
}

/* =========================================
   APPLIED ROW MOBILE ALIGN FIX
========================================= */
@media (max-width: 768px) {

  .ttj-applied-row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .ttj-applied-actions {
    display: flex;
    justify-content: space-between; /* 🔥 left + right split */
    align-items: center;
    width: 100%;
    margin-top: 4px; /* 🔥 ipande juu kidogo */
  }

  /* Left group (Filled/View + Status) */
  .ttj-applied-actions > *:not(.ttj-delete-app) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* Delete button right */
  .ttj-delete-app {
    margin-left: auto;
  }
}

/* =========================================
   MOBILE ICON MODE
========================================= */

@media (max-width:1024px){

    /* ICON MODE ONLY FOR JOB CARD TOP PILLS */
    .ttj-job-top .ttj-pill{
        padding:8px;
        width:34px;
        height:34px;
        justify-content:center;
        border-radius:10px;
        cursor:pointer;
    }

    .ttj-job-top .ttj-pill span{
        display:none;
    }

    .ttj-job-top .ttj-pill.is-open{
        width:auto;
        padding:8px 12px;
        border-radius:999px;
    }

    .ttj-job-top .ttj-pill.is-open span{
        display:inline;
    }
}

.ttj-desktop-only{
    display: block !important;
}
.ttj-mobile-only{
    display:none !important;
}

.ttj-job-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

/* =========================================
   MOBILE ICON MODE
========================================= */

@media (max-width:1024px){

    /* Hide desktop text pills */
    .ttj-desktop-only{
        display:none !important;
    }

    /* Show icon pills */
    .ttj-mobile-only{
        display:inline-flex !important;
    }

    .ttj-job-title {
        margin-top: 15px;
    }

    .ttj-job-card{
        padding: 20px;
    }

    .ttj-view-btn{
        border-radius: 8px;
    }

    .ttj-icon-badge{
        width:34px;
        height:34px;
        padding:0;
        justify-content:center;
        align-items:center;
        border-radius:10px;
        background:#f3f4f6;
        cursor:pointer;
        position:relative;
    }

    .ttj-icon-badge svg{
        width:16px;
        height:16px;
        stroke:#374151;
        fill:none;
        stroke-width:2;
    }

    /* OPEN STATE */
    .ttj-icon-badge.is-open{
        width:auto;
        padding:6px 12px;
        border-radius:999px;
        gap:6px;
    }

    .ttj-icon-badge.is-open::after{
        content: attr(data-label);
        font-size:13px;
        font-weight:600;
        color:#111;
    }
}

/* =========================================
   TRUST PILLS – CLEAN & ISOLATED
========================================= */

.ttj-trust-pills{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:2px;
}

/* MOBILE */
@media (max-width: 640px) {
    .ttj-trust-pills{
        margin-top:10px;
        justify-content: center;
    }
}

/* Base pill */
.ttj-trust-pills .ttj-pill{
    font-size:12px;
    font-weight:500;
    padding:4px 10px;
    border-radius:999px;
    background:#f1f5f9;
    display:inline-flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
}

.ttj-trust-pills .ttj-pill-text{
    color:#334155;
}

/* Green check – ALWAYS green */
.ttj-trust-pills .ttj-check{
    color:#16a34a !important;
    font-weight:700;
    display:inline-block;
    margin-top: 3px;
}

/* =========================
   SMALL SCREENS
========================= */

@media (max-width:1024px){

    .ttj-trust-pills .ttj-pill{
        font-size:12px;
        padding:4px 10px;
        border-radius:999px;
        width:auto;
        height:auto;
    }

    /* DO NOT HIDE CHECK */
    .ttj-trust-pills .ttj-check{
        display:inline-block;
    }
}


/* =========================
   VIEW JOB BUTTON
========================= */
.ttj-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0056d2;
    color: #ffffff;
    padding: 4px 14px;
    font-size: 14px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ttj-view-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

/* Arrow move on hover */
.ttj-view-btn:hover svg {
    transform: translateX(3px);
}

/* KEEP TEXT WHITE ON HOVER */
.ttj-view-btn:hover {
    background: #0047b3;
    color: #ffffff;
}

/* Prevent theme overrides */
.ttj-view-btn,
.ttj-view-btn:visited,
.ttj-view-btn:active,
.ttj-view-btn:focus {
    color: #fff; /* weka rangi yako ya brand */
    text-decoration: none;
}

.ttj-mobile-only-b{
    display: none;
}

@media (max-width: 600px){

    .ttj-desktop-only-b{
        display:none !important;
    }

    .ttj-mobile-only-b{
        display: block;
        text-align: center;
        justify-content: center;
        margin-top: 10px;
    }

    .ttj-single-footer{
        text-align: center;
        justify-content: center;
    }

}

.ttj-filter-locked{
    margin-bottom: 20px;
}

.ttj-enterprise-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    border: none;
}

.ttj-enterprise-btn:hover,
.ttj-enterprise-btn:focus,
.ttj-enterprise-btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none;
}

.ttj-enterprise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.ttj-enterprise-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ttj-category-wrap {
    position: relative;
}

.ttj-category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    border-radius: 6px;
}

.ttj-category-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

.ttj-category-item:hover {
    background: #f3f4f6;
}
