:root {
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --accent: #2563eb;
  --accent-soft: #e0ecff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0ecff 0, #f5f7fb 45%, #ffffff 100%);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   HEADER / NAV
   =========================== */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245,247,251,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(209,213,219,0.6);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, #2563eb, #22c55e, #06b6d4, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

/* Main nav menu */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-link {
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--accent);
}

/* Active nav link */
.nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* CTA area */
.nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Mobile toggle */
.nav-toggle {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  padding: 0.25rem;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #111827;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 10px 20px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37,99,235,0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.8);
}

/* ===========================
   LAYOUT / HERO
   =========================== */

main {
  flex: 1;
}

.hero {
  padding: 2.5rem 0 1.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

/* HERO TEXT */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(219,234,254,0.9);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span strong {
  display: block;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

/* HERO PANEL */

.hero-panel {
  background: rgba(255,255,255,0.98);
  border-radius: 1.25rem;
  border: 1px solid rgba(209,213,219,0.8);
  box-shadow: 0 22px 45px rgba(15,23,42,0.12);
  padding: 1.25rem 1.35rem 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}

.panel-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.badge-soft {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.question-row {
  padding: 0.7rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  font-size: 0.86rem;
}

.question-row strong {
  display: block;
  margin-bottom: 0.25rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.pill-alt {
  background: #ecfeff;
  color: #0f766e;
}

.score-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(148,163,184,0.8);
}

.score-main {
  font-size: 0.85rem;
}

.score-main strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.score-chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.panel-footer a {
  font-weight: 600;
  color: #1d4ed8;
}

/* ===========================
   GENERIC SECTIONS
   =========================== */

.section {
  padding: 1.75rem 0 0.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-link {
  font-size: 0.85rem;
  color: #1d4ed8;
  font-weight: 500;
}

/* ===========================
   CARDS & GRIDS
   =========================== */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 24px rgba(15,23,42,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card h3 {
  font-size: 0.98rem;
  margin: 0;
}

.card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-muted);
}

.card-footer {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #1d4ed8;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===========================
   CATEGORY CHIPS
   =========================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  cursor: pointer;
}

.chip-primary {
  background: #e0ecff;
  color: #1d4ed8;
}

/* ===========================
   JOBS PREVIEW
   =========================== */

.jobs-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.job-list {
  display: grid;
  gap: 0.6rem;
}

.job-row {
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
}

.job-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.job-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.jobs-aside {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.jobs-aside h3 {
  font-size: 0.95rem;
  margin-top: 0;
}

.jobs-aside p {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* ===========================
   WHY SECTION
   =========================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.why-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ===========================
   CONTACT BOX
   =========================== */

.contact-box {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-box strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-email {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: #111827;
  color: #e5e7eb;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
  padding: 1.1rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ===========================
   INTERVIEW WHISPERER
   =========================== */

.iw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.iw-main {}
.iw-sidebar {}

.iw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.iw-question-card {
  margin-top: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}

.iw-question-card.iw-collapsed {
  max-height: 160px;
  opacity: 0.95;
}

.iw-question-card.iw-active {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

.iw-question-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.iw-question-help {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.iw-answers {
  margin-top: 0.4rem;
}

/* Make answers wrap nicely */
.iw-answers .btn,
.iw-answer-btn {
  display: block;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  margin: 0.25rem 0;
}

.iw-feedback {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #111827;
}

.iw-question-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.iw-tip-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.iw-tip-list li + li {
  margin-top: 0.15rem;
}

/* Hide elements until needed */
.iw-hidden {
  display: none !important;
}

/* Get ready overlay */
.iw-get-ready {
  position: absolute;
  inset: 0.4rem 0.6rem auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.iw-get-ready-inner {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(37,99,235,0.1);
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #1d4ed8;
}

.iw-get-ready-dots span {
  animation: iw-dot-bounce 1s infinite;
  display: inline-block;
}

.iw-get-ready-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.iw-get-ready-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes iw-dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* ===========================
   AD SLOTS (That Next Job)
   =========================== */

.tnj-ad-slot {
  margin: 1.5rem 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.tnj-ad-debug-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.tnj-ad-device {
  width: 100%;
}

/* Desktop vs mobile visibility */
.tnj-desktop-only { display: block; }
.tnj-mobile-only  { display: none; }

@media (max-width: 768px) {
  .tnj-desktop-only { display: none; }
  .tnj-mobile-only  { display: block; }

  .tnj-ad-slot .ad-inner {
    min-height: 120px;
  }
}

/* Placeholder styling until real ad code is added */
.tnj-ad-slot .ad-inner {
  border: 1px dashed #ccc;
  background: #f7f7f7;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
}

/* Fallback ad card */
.tnj-ad-fallback {
  display: block;
  text-decoration: none;
  background: white;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow:
    0px 1px 2px rgba(0, 0, 0, 0.03),
    0px 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.18s ease;
}

.tnj-ad-fallback:hover {
  border-color: #d1d5db;
  background: #fafafa;
  box-shadow:
    0px 2px 5px rgba(0, 0, 0, 0.04),
    0px 3px 7px rgba(0, 0, 0, 0.06);
}

.tnj-ad-fallback-inner {
  display: grid;
  gap: 0.45rem;
}

.tnj-ad-fallback-tag {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  width: max-content;
}

.tnj-ad-fallback-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.tnj-ad-fallback-text {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.45;
}

.tnj-ad-fallback-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 0.25rem;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    top: 70px; /* Adjust if header height changes */
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: none;
    padding: 0.75rem 1.25rem;
  }

  .nav-menu.is-open {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .jobs-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .iw-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.categories-page .chip {
  padding: 0.75rem 1.23rem;
}

.pagination {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.pagination .page-link {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
}

.pagination .page-link.is-current {
  font-weight: 600;
  border-color: #111827;
}


