/* ===================================================================
   Studmob — Single Job page styles (mobile-first, premium)
   Loaded only on single `jobs` posts.
   =================================================================== */

.studmob-single-wrap {
  --sj-text: #1a1a2e;
  --sj-muted: #667085;
  --sj-light: #98a2b3;
  --sj-border: #e4e7ec;
  --sj-accent: #4a1a6e;
  --sj-green-bg: #eaf3de;
  --sj-green-text: #3b6d11;
  width: 100%;
  background: #f7f8fa;
  padding: 16px 14px 90px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.studmob-single-wrap * { box-sizing: border-box; }

.sj-card {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 20px 18px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(16,24,40,0.05);
}

/* ── Header ── */
.sj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.sj-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--sj-text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.sj-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--sj-muted);
  margin-bottom: 8px;
}
.sj-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--sj-muted);
}
.sj-location svg { color: var(--sj-light); flex-shrink: 0; }
.sj-logo { flex-shrink: 0; }
.sj-logo .job-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  overflow: hidden;
}

/* ── Stat grid ── */
.sj-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  padding: 16px 0;
  border-top: 1px solid #f2f4f7;
  border-bottom: 1px solid #f2f4f7;
  margin-bottom: 16px;
}
.sj-stat-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--sj-light);
  margin-bottom: 5px;
}
.sj-stat-label svg { flex-shrink: 0; }
.sj-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--sj-text);
}

/* ── Tags + apply ── */
.sj-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.sj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sj-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
}
.sj-tag-soft { background: #f2f4f7; color: #475467; }
.sj-tag-salary { background: var(--sj-green-bg); color: var(--sj-green-text); }

.sj-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sj-accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}
.sj-apply-btn:hover { background: #5e2589; color: #fff; }
.sj-apply-btn:active { transform: scale(0.99); }
.sj-apply-disabled { background: #cbd2dc; cursor: not-allowed; }

/* ── Description ── */
.sj-section { margin-top: 6px; }
.sj-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sj-text);
  margin: 0 0 12px;
}
.sj-description {
  font-size: 14.5px;
  line-height: 1.75;
  color: #344054;
}
.sj-description p { margin: 0 0 12px; }
.sj-description ul, .sj-description ol { margin: 0 0 12px; padding-left: 22px; }
.sj-description li { margin-bottom: 6px; }
.sj-description h2, .sj-description h3 {
  font-size: 15px; font-weight: 700; color: var(--sj-text);
  margin: 18px 0 8px;
}
.sj-description a { color: var(--sj-accent); }

/* ── Sticky mobile apply bar ── */
.sj-sticky-apply {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--sj-border);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  box-shadow: 0 -2px 10px rgba(16,24,40,0.06);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.sj-sticky-apply.sj-sticky-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sj-apply-full { width: 100%; }

/* ── Desktop refinements ── */
@media (min-width: 721px) {
  .studmob-single-wrap { padding: 28px 24px 40px; }
  .sj-card { padding: 28px 30px; }
  .sj-title { font-size: 24px; }
  .sj-stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .sj-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sj-apply-btn { width: auto; }
  /* hide the sticky bar on desktop — inline button is enough */
  .sj-sticky-apply { display: none; }
}

/* ===================================================================
   Desktop polish: white background + tighter card
   =================================================================== */
.studmob-single-wrap {
  background: #ffffff !important;
}

@media (min-width: 721px) {
  .studmob-single-wrap {
    padding: 26px 24px 36px;
  }
  .sj-card {
    max-width: 760px;
    padding: 26px 28px;
    border: 1px solid #d7dbe2;
    box-shadow: 0 1px 3px rgba(16,24,40,0.05);
  }
  /* tighten vertical rhythm so it isn't so tall */
  .sj-head { margin-bottom: 16px; }
  .sj-stats { padding: 14px 0; margin-bottom: 14px; gap: 16px; }
  .sj-actions { margin-bottom: 18px; }
}

/* ===================================================================
   Two-column layout + Similar jobs sidebar (apna-style)
   =================================================================== */
.sj-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sj-layout .sj-card { max-width: none; margin: 0; }

/* Similar jobs */
.sj-similar {
  background: #fff;
  border: 1px solid #d7dbe2;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.05);
}
.sj-similar-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 14px;
}
.sj-similar-list { display: flex; flex-direction: column; gap: 12px; }

.sj-similar-card {
  display: block;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.sj-similar-card:hover {
  border-color: #c2c8d2;
  box-shadow: 0 2px 8px rgba(16,24,40,0.07);
}
.sj-similar-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sj-similar-logo { flex-shrink: 0; }
.sj-similar-logo .job-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; overflow: hidden;
}
.sj-similar-headings { flex: 1; min-width: 0; }
.sj-similar-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 2px;
}
.sj-similar-company {
  font-size: 12.5px;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sj-similar-arrow { color: #98a2b3; flex-shrink: 0; margin-top: 2px; }
.sj-similar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #475467;
  margin-top: 8px;
}
.sj-similar-meta svg { color: #98a2b3; flex-shrink: 0; }
.sj-similar-tags { margin-top: 10px; }
.sj-similar-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #475467;
  background: #f2f4f7;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Desktop: two columns — content + sidebar */
@media (min-width: 901px) {
  .sj-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 20px;
    align-items: start;
  }
  .sj-similar {
    position: sticky;
    top: 20px;
  }
}
