/* JobDozo SEO / listing detail pages — matches homepage design language */
:root {
  --blue: #1a6cf5;
  --blue-dark: #0d4fc4;
  --blue-deep: #0b3a8f;
  --navy: #0f2a5c;
  --ink: #16243d;
  --text: #2b3a55;
  --muted: #7c8aa5;
  --line: #e4eaf3;
  --bg: #eef2f8;
  --card: #ffffff;
  --green: #16a34a;
  --orange: #f59e0b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(22, 36, 61, 0.07), 0 8px 24px rgba(22, 36, 61, 0.05);
  --v2-bg: #f8f9fd;
  --v2-blue: #1a6cf5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

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

/* Header / footer chrome comes from styles.css + design-v2.css (homepage). */

/* ---------- Layout ---------- */
.seo-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}
.seo-crumbs {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}
.seo-crumbs a { color: var(--blue); font-weight: 600; }
.seo-crumbs a:hover { text-decoration: underline; }
.seo-crumbs .sep { margin: 0 6px; color: #94a3b8; }
.seo-crumbs .current { color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.job-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, #0d4fc4, #1a6cf5 45%, #6366f1);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  animation: seoFadeUp 0.45s ease both;
}
.job-hero-media {
  position: absolute;
  inset: 0;
}
.job-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.job-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 28, 68, 0.94) 0%, rgba(15, 42, 92, 0.78) 42%, rgba(15, 42, 92, 0.55) 100%),
    linear-gradient(to top, rgba(11, 28, 68, 0.55), transparent 45%);
}
.job-hero-body {
  position: relative;
  z-index: 1;
  padding: 32px 28px 28px;
  color: #fff;
  max-width: 720px;
}
.job-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.job-hero-badge i { color: #86efac; }
.job-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #fff;
}
.job-hero-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 18px;
  font-weight: 500;
}
.job-hero-lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.job-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.job-hero-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.job-hero-chip strong { font-weight: 800; }
.job-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(26, 108, 245, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff !important; }
.btn-wa { background: #128c7e; color: #fff !important; }
.btn-wa:hover { filter: brightness(1.06); color: #fff !important; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff !important; }
.btn-outline {
  background: #fff;
  color: var(--blue) !important;
  border: 1.5px solid #bcd5ff;
}
.btn-outline:hover { background: #f4f8fe; border-color: var(--blue); }

/* ---------- Content grid ---------- */
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.seo-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  padding: 22px 22px 20px;
  animation: seoFadeUp 0.5s ease both;
}
.seo-card h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.seo-card + .seo-card { margin-top: 14px; }
.prose {
  color: var(--text);
  font-size: 0.95rem;
  white-space: pre-wrap;
  line-height: 1.65;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: #f4f7fc;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.chip strong { color: var(--ink); }
.chip-soft {
  background: #eef3fa;
  color: var(--blue-deep);
  border: none;
}

/* Sidebar */
.job-side { display: flex; flex-direction: column; gap: 14px; }
.side-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.side-stat {
  background: #f7f9fd;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.side-stat strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 800;
}
.side-stat span {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}
.company-panel-media {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}
.company-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-panel h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}
.company-panel p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 12px;
}

/* ---------- Visual story band ---------- */
.visual-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin: 8px 0 20px;
  animation: seoFadeUp 0.55s ease both;
}
.visual-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 200px;
  box-shadow: var(--shadow);
  background: #e2e8f0;
}
.visual-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.visual-tile:hover img { transform: scale(1.04); }
.visual-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(15, 42, 92, 0.85));
  color: #fff;
}
.visual-tile-cap strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}
.visual-tile-cap span {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* ---------- Highlights / features ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 20px;
}
.highlight {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 36, 61, 0.1);
}
.highlight-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 1rem;
}
.highlight strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 4px;
}
.highlight span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Related job cards ---------- */
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}
.related-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.rel-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.rel-card:hover {
  transform: translateY(-3px);
  border-color: #bcd5ff;
  box-shadow: 0 14px 32px rgba(22, 36, 61, 0.12);
  color: inherit;
}
.rel-card-banner {
  height: 110px;
  background: linear-gradient(135deg, #64748b, #94a3b8);
  position: relative;
}
.rel-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rel-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.rel-card-body h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.rel-card-body .co {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.rel-card-body .sal {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: auto;
}
.rel-card-body .sal span { font-size: 0.72rem; font-weight: 600; color: var(--muted); }

/* ---------- Explore links ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.explore-grid a {
  background: #f4f7fc;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  transition: border-color 0.15s, background 0.15s;
}
.explore-grid a:hover {
  border-color: #bcd5ff;
  background: #eef4ff;
  color: var(--blue);
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fff;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: #bcd5ff; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.72rem;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Feature strip + footer chrome comes from styles.css (homepage). */

/* ---------- Sticky CTA ---------- */
.sticky-apply {
  position: sticky;
  bottom: 14px;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px 8px;
}
.sticky-apply .btn {
  pointer-events: auto;
  min-width: 200px;
  box-shadow: 0 10px 32px rgba(26, 108, 245, 0.45);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .job-layout { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .visual-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .job-hero-body { padding: 24px 18px 20px; }
  .job-hero-actions .btn { flex: 1; min-width: 140px; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .seo-card { padding: 18px; }
}

/* ---------- Legacy helpers for company / city / role landings ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}
.card h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.card h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin: 22px 0 12px;
}
.lead { color: var(--muted); margin: 0 0 14px; font-size: 0.98rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn-ghost:not(.job-hero-actions .btn-ghost) {
  background: #fff;
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
}
.btn-ghost:not(.job-hero-actions .btn-ghost):hover {
  border-color: #bcd5ff;
  background: #f4f8fe;
  color: var(--blue) !important;
}
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.list li:last-child { border-bottom: 0; }
.list a { font-weight: 800; color: var(--ink); }
.list a:hover { color: var(--blue); }
.list small { display: block; color: var(--muted); margin-top: 4px; font-size: 0.8rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0;
}
.grid a {
  background: #f4f7fc;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
}
.grid a:hover { border-color: #bcd5ff; background: #eef4ff; color: var(--blue); }

/* ---------- Browse by role (Gemini icons) ---------- */
.role-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.role-browse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 14px 10px 12px;
  background: #f7f9fd;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.role-browse-card:hover {
  transform: translateY(-3px);
  border-color: #bcd5ff;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 36, 61, 0.1);
  color: var(--ink);
}
.role-browse-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22, 36, 61, 0.08);
}
.role-browse-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.role-browse-fa {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
}
.role-browse-card strong {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width: 640px) {
  .role-browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
  }
  .role-browse-icon { width: 56px; height: 56px; border-radius: 14px; }
}

