:root {
  --ink: #1f2937;
  --muted: #5f6f89;
  --line: #e3eaf5;
  --paper: #ffffff;
  --soft: #f5f8ff;
  --brand: #275df5;
  --brand-dark: #1747c8;
  --accent: #ff7555;
  --warning: #fff6ed;
  --shadow: 0 20px 45px rgba(31, 42, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7faff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 20px rgba(39, 93, 245, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 72px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  font-size: 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.3px;
  line-height: 1;
}

.footer-logo .brand-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--brand);
}

.hero {
  background: radial-gradient(circle at 20% 0%, #eaf1ff 0, #f7faff 34%, #ffffff 100%);
}

.hero-inner,
.section,
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 46px 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
}

.hero-card {
  min-height: 430px;
  background-image: linear-gradient(180deg, rgba(20, 46, 92, 0.04), rgba(20, 46, 92, 0.62)), url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1100&q=80");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 24px;
  color: #fff;
}

.hero-card h2 {
  font-size: 28px;
  max-width: 520px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--brand), #3b72ff);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn.secondary {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title p {
  max-width: 520px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card,
.job-card,
.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card-body,
.job-card,
.info-box {
  padding: 20px;
}

.meta {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-card a,
.job-card a {
  text-decoration: none;
}

.post-card p,
.job-card p,
.article-content li {
  color: var(--muted);
}

.job-list {
  display: grid;
  gap: 16px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.ad-slot {
  min-height: 110px;
  border: 1px dashed #b7c4cc;
  background: #f8fafb;
  color: #7a8795;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  margin: 28px 0;
  font-size: 13px;
}


.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.sidebar a {
  display: block;
  text-decoration: none;
  margin: 8px 0;
  color: var(--brand);
  font-weight: 800;
}

.quick-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.quick-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  text-decoration: none;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(39, 93, 245, 0.05);
}

.quick-list a:hover {
  border-color: #c4d4ff;
  color: var(--brand);
}

.checklist {
  background: var(--soft);
  border-radius: 8px;
  padding: 18px 22px;
}

.checklist li+li {
  margin-top: 8px;
}

.notice-strip {
  border-left: 4px solid var(--accent);
  background: var(--warning);
  padding: 16px 18px;
  border-radius: 8px;
  margin: 22px 0;
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 20px;
}

.article-hero {
  width: 100%;
  height: min(420px, 52vw);
  object-fit: cover;
  border-radius: 8px;
  margin: 22px 0;
}

.article-content {
  font-size: 17px;
}

.article-content h2 {
  margin-top: 30px;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.comparison th,
.comparison td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.comparison th {
  background: var(--soft);
}

.cta-panel {
  background: #eef4ff;
  border: 1px solid #cfddff;
  border-radius: 8px;
  padding: 24px;
  margin: 30px 0;
}

.site-footer {
  background: #0f172a;
  color: #dce5ea;
  margin-top: 48px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(130px, 0.65fr));
  gap: 28px;
  align-items: start;
}

.footer-brand-block p {
  color: #b7c4d3;
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
  margin: 14px 0 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  width: 178px;
  min-height: 70px;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: 170px;
  height: auto;
  object-fit: contain;
}

.footer-column h3 {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  color: #dce5ea;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  margin: 0 0 10px;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 20px;
}

.disclosure,
.footer-copy {
  color: #aebdcb;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.disclosure {
  max-width: 760px;
}

.footer-copy {
  flex: 0 0 auto;
  text-align: right;
}

.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(246, 249, 255, 0.86);
  backdrop-filter: blur(6px);
}

.quiz-overlay.is-active {
  display: grid;
}

.quiz-card {
  width: min(452px, 100%);
  min-height: 402px;
  background: #fff;
  border: 1px solid #d6dde2;
  border-radius: 8px;
  box-shadow: 0 28px 44px rgba(39, 93, 245, 0.18), 0 18px 32px rgba(255, 117, 85, 0.16);
  position: relative;
  overflow: hidden;
  padding: 34px 30px 28px;
}

.quiz-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: #eef2f4;
}

.quiz-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--brand);
  border-radius: 0 999px 999px 0;
  transition: width 220ms ease;
}

.quiz-question {
  text-align: center;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 30px;
  font-weight: 500;
}

.quiz-options {
  display: grid;
  gap: 15px;
}

.quiz-option {
  border: 0;
  min-height: 48px;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--brand), #3b72ff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  background: var(--brand-dark);
  outline: none;
}

.quiz-loading,
.quiz-result {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}

.quiz-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.quiz-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 900ms ease-in-out infinite alternate;
}

.quiz-dots span:nth-child(2) {
  animation-delay: 160ms;
}

.quiz-loading p {
  color: var(--brand);
  font-size: 20px;
}

.quiz-result h2 {
  font-weight: 500;
  font-size: 24px;
}

.quiz-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}

@keyframes pulse {
  from {
    opacity: 0.45;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 840px) {

  .hero-grid,
  .card-grid,
  .footer-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-card {
    min-height: 300px;
  }

  .job-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .quiz-card {
    min-height: 392px;
    padding: 30px 20px 24px;
  }

  .quiz-question {
    font-size: 22px;
  }
}

.quiz-ad-step {
  min-height: 300px;
  display: grid;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.quiz-ad-step h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.quiz-ad-copy {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.quiz-ad-step .ad-group-header {
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px;
}

.quiz-ad-continue {
  margin-top: 8px;
  width: 100%;
}

.ad-group-header {
  margin: 24px 0 4px;
}

.ad-wrapper.ad-adsense {
  min-height: 90px;
  display: block;
}

/* Mobile responsiveness hardening */
html,
body {
  overflow-x: hidden;
}

.nav-links {
  min-width: 0;
}

.nav-links a {
  white-space: nowrap;
}

.article-shell {
  width: 100%;
}

.article-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.article-content img,
.article-content iframe,
.article-content table,
.ad-group-header,
.adsbygoogle,
.ad-wrapper.ad-adsense {
  max-width: 100%;
}

.ad-wrapper.ad-adsense {
  overflow: hidden;
}

.comparison {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quiz-overlay {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.quiz-card {
  min-height: min(402px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
}

@media (max-width: 840px) {
  .nav {
    gap: 12px;
    min-height: auto;
    padding: 14px 16px;
  }

  .nav-links {
    gap: 10px 14px;
  }

  .job-card .btn,
  .cta-panel .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {

  .hero-inner,
  .section,
  .footer-inner,
  .article-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner,
  .section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .nav-links a {
    min-height: 36px;
    display: flex;
    align-items: center;
    white-space: normal;
    line-height: 1.2;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  .lead,
  .article-content {
    font-size: 16px;
  }

  .section-title {
    display: block;
  }

  .hero-card {
    min-height: 240px;
    padding: 18px;
  }

  .article-hero {
    height: 220px;
  }

  .post-card img {
    height: 170px;
  }

  .info-box,
  .job-card,
  .post-card-body,
  .cta-panel {
    padding: 16px;
  }

  .checklist {
    padding: 16px 18px;
  }

  .ad-group-header {
    margin: 20px 0 4px;
  }

  .quiz-card {
    width: 100%;
    min-height: min(392px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    padding: 28px 18px 22px;
    overflow-y: auto;
  }

  .quiz-question {
    font-size: 21px;
    margin-bottom: 24px;
  }

  .quiz-options {
    gap: 12px;
  }

  .quiz-option {
    min-height: 46px;
    padding: 10px 12px;
  }

  .quiz-loading,
  .quiz-result,
  .quiz-ad-step {
    min-height: 260px;
  }

  .quiz-ad-step h2 {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .nav-links {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 29px;
  }

  .quiz-overlay {
    padding: 10px;
  }

  .quiz-card {
    min-height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .quiz-question {
    font-size: 20px;
  }
}

/* Mobile hamburger navigation */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(39, 93, 245, 0.06);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 64px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .site-header.nav-open .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .nav-links a {
    min-height: 42px;
    padding: 10px 2px;
    display: flex;
    align-items: center;
    white-space: normal;
    line-height: 1.2;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .nav-links {
    grid-template-columns: 1fr;
  }
}

/* Modal ad slot sizing */
.quiz-card {
  width: min(520px, calc(100vw - 24px));
}

.quiz-ad-step {
  width: 100%;
  min-height: auto;
  align-content: start;
}

.quiz-ad-step>div {
  width: 100%;
}

.quiz-ad-step .quiz-modal-ad {
  width: 100%;
  min-height: 250px;
  margin: 14px 0 4px;
  padding: 10px;
  display: block;
  overflow: visible;
  background: #f8fbff;
}

.quiz-modal-ad .ad-wrapper.ad-adsense,
.quiz-modal-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-width: 0;
  min-height: 250px !important;
  overflow: visible;
}

.quiz-ad-continue {
  min-height: 48px;
}

@media (max-width: 520px) {
  .quiz-card {
    width: calc(100vw - 16px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .quiz-ad-step .quiz-modal-ad {
    min-height: 250px;
    padding: 8px;
  }

  .quiz-modal-ad .ad-wrapper.ad-adsense,
  .quiz-modal-ad ins.adsbygoogle {
    min-height: 250px !important;
  }
}

@media (max-width: 340px) {
  .quiz-card {
    width: calc(100vw - 10px);
    padding-left: 10px;
    padding-right: 10px;
  }

  .quiz-ad-step .quiz-modal-ad {
    padding: 6px;
  }
}

/* Fixed display ad sizes */
.display-ad-tall {
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.display-ad-tall .ad-wrapper.ad-adsense {
  width: 300px;
  height: 600px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.display-ad-tall ins.adsbygoogle {
  display: inline-block !important;
  width: 300px !important;
  height: 600px !important;
}

.quiz-ad-step .quiz-modal-ad {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.quiz-modal-ad .ad-wrapper.ad-adsense {
  width: 300px;
  height: 250px;
  min-height: 250px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-modal-ad ins.adsbygoogle {
  display: inline-block !important;
  width: 300px !important;
  height: 250px !important;
  min-height: 250px !important;
}


/* Prevent quiz modal horizontal drift */
.quiz-overlay {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  justify-items: center;
}

.quiz-card {
  width: min(520px, 100%) !important;
  max-width: 100%;
  min-width: 0;
}

#jobQuizBody,
.quiz-options,
.quiz-option,
.quiz-ad-step,
.quiz-ad-step>div,
.quiz-loading,
.quiz-result {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.quiz-option {
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .quiz-overlay {
    padding-left: 10px;
    padding-right: 10px;
  }

  .quiz-card {
    width: 100% !important;
  }
}

@media (max-width: 340px) {
  .quiz-overlay {
    padding-left: 6px;
    padding-right: 6px;
  }

  .quiz-modal-ad .ad-wrapper.ad-adsense,
  .quiz-modal-ad ins.adsbygoogle {
    max-width: 100%;
  }
}

/* Mobile page hero and header polish */
html,
body {
  margin: 0;
  padding: 0;
}

.site-header {
  top: 0;
}

main.section>.section-title:first-child {
  padding: 6px 0 10px;
}

main.section>.section-title:first-child h1 {
  max-width: 760px;
}

main.section>.section-title:first-child>p {
  max-width: 640px;
}

@media (max-width: 640px) {
  body {
    background: #f7faff;
  }

  .site-header {
    top: 0;
    margin-top: 0;
    border-top: 0;
  }

  .nav {
    min-height: 62px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-inner,
  .section,
  .article-shell {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  main.section {
    padding-top: 26px;
  }

  .section-title {
    margin-bottom: 18px;
  }

  main.section>.section-title:first-child {
    min-height: 0;
    padding: 0 0 4px;
    margin-bottom: 18px;
  }

  main.section>.section-title:first-child h1 {
    font-size: 31px;
    line-height: 1.18;
    margin-bottom: 14px;
  }

  main.section>.section-title:first-child p,
  .lead {
    font-size: 16px;
    line-height: 1.58;
  }

  .eyebrow {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .display-ad-tall {
    min-height: 250px;
    margin: 18px 0 22px;
  }

  .display-ad-tall .ad-wrapper.ad-adsense {
    width: 300px;
    height: 250px;
    min-height: 250px;
  }

  .display-ad-tall ins.adsbygoogle {
    width: 300px !important;
    height: 250px !important;
  }
}

@media (max-width: 360px) {
  main.section>.section-title:first-child h1 {
    font-size: 29px;
  }

  .section,
  .hero-inner,
  .article-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Brand logo image */
.brand-mark {
  background: transparent;
  color: inherit;
  overflow: hidden;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* New AdSense slot layout */
.display-ad {
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 4px;
  overflow: visible;
}

.display-ad .ad-wrapper.ad-adsense,
.display-ad ins.adsbygoogle {
  display: block !important;
  width: min(100%, 728px) !important;
  min-height: 250px;
  overflow: visible;
}

.infeed-ad-card {
  min-height: 180px;
  display: block;
  padding: 16px;
}

.job-card.infeed-ad-card {
  grid-template-columns: 1fr;
}

.infeed-ad-wrapper,
.infeed-ad-wrapper ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 120px;
}

.quiz-modal-ad .ad-wrapper.ad-adsense,
.quiz-modal-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 250px !important;
  height: auto !important;
}

@media (max-width: 640px) {
  .display-ad {
    min-height: 250px;
    margin: 18px 0 22px;
  }

  .display-ad .ad-wrapper.ad-adsense,
  .display-ad ins.adsbygoogle {
    width: 100% !important;
    min-height: 250px;
  }

  .infeed-ad-card {
    min-height: 160px;
  }
}

/* Logo-only header */
.brand.logo-only {
  gap: 0;
}

.brand.logo-only .brand-mark {
  width: 122px;
  height: 40px;
  border-radius: 0;
}

.brand.logo-only .brand-mark img {
  object-fit: contain;
}

@media (max-width: 640px) {
  .brand.logo-only .brand-mark {
    width: 110px;
    height: 36px;
  }
}

/* Logo clipping fix */
.brand.logo-only {
  align-items: center;
  min-height: 74px;
}

.brand.logo-only .brand-mark {
  width: 168px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  flex: 0 0 auto;
}

.brand.logo-only .brand-mark img {
  width: 168px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .brand.logo-only {
    min-height: 70px;
  }

  .brand.logo-only .brand-mark {
    width: 152px;
    height: 68px;
  }

  .brand.logo-only .brand-mark img {
    width: 152px;
    max-height: 68px;
  }

  .nav {
    min-height: 82px;
  }
}

/* Collapse unavailable ads */
.ad-is-hidden {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Local test ads when ADS_LIVE=0 */
.test-ad {
  width: 100%;
  min-height: 180px;
  border: 1px dashed #9db7ff;
  border-radius: 8px;
  background: #eef4ff;
  color: #31539b;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  margin: 24px 0;
  padding: 18px;
}

.test-ad strong {
  font-size: 16px;
}

.test-ad span {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.infeed-ad-card .test-ad,
.test-ad-blog,
.test-ad-job {
  min-height: 140px;
  margin: 0;
}

@media (max-width: 840px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-logo {
    width: 150px;
    min-height: 58px;
  }

  .footer-logo img {
    width: 148px;
  }
}

/* Compact centered quiz modal on mobile */
@media (max-width: 640px) {
  .quiz-overlay {
    align-items: center;
    justify-items: center;
    padding: 18px !important;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .quiz-card {
    width: min(388px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px);
    min-height: 0;
    max-height: calc(100dvh - 44px);
    padding: 30px 18px 24px;
    border-radius: 8px;
    box-shadow: 0 22px 38px rgba(39, 93, 245, 0.18), 0 16px 30px rgba(15, 23, 42, 0.12);
  }

  .quiz-question {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 24px;
  }

  .quiz-options {
    gap: 12px;
  }

  .quiz-option {
    min-height: 46px;
    padding: 10px 14px;
  }

  .quiz-loading,
  .quiz-result {
    min-height: 230px;
  }

  .quiz-ad-step {
    min-height: 0;
  }

  .quiz-ad-step .quiz-modal-ad {
    min-height: 250px;
  }
}

@media (max-width: 380px) {
  .quiz-overlay {
    padding: 14px !important;
  }

  .quiz-card {
    width: min(350px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .quiz-question {
    font-size: 20px;
  }
}

/* Wider listing and job detail layouts */
.listing-shell {
  max-width: 1320px;
}

.listing-shell .section-title {
  align-items: flex-start;
}

.listing-shell .section-title h1 {
  max-width: 820px;
}

.listing-shell .section-title>p {
  max-width: 620px;
}

.jobs-shell .job-list,
.category-shell .job-list {
  gap: 18px;
}

.jobs-shell .job-card,
.category-shell .job-card {
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  padding: 22px 24px;
}

.blog-shell .card-grid,
.category-shell .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.job-detail-shell {
  max-width: 1240px;
}

.job-detail-shell .lead {
  max-width: 820px;
}

.job-detail-shell .article-hero {
  height: min(430px, 40vw);
}

.job-detail-shell .content-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
}

.job-detail-shell .article-content {
  max-width: 780px;
}

@media (max-width: 1120px) {

  .blog-shell .card-grid,
  .category-shell .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {

  .listing-shell,
  .job-detail-shell {
    max-width: 100%;
  }

  .blog-shell .card-grid,
  .category-shell .card-grid {
    grid-template-columns: 1fr;
  }

  .jobs-shell .job-card,
  .category-shell .job-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .job-detail-shell .content-grid {
    grid-template-columns: 1fr;
  }

  .job-detail-shell .article-content {
    max-width: none;
  }
}

/* Opportunity apply panels */
.opportunity-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  margin: 30px 0;
  padding: 24px;
  text-align: center;
}

.opportunity-panel h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 18px;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.95fr);
  gap: 22px;
  align-items: center;
  text-align: left;
}

.opportunity-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.opportunity-copy p:not(.meta) {
  color: var(--text);
  line-height: 1.6;
}

.opportunity-button {
  margin-top: 4px;
  min-width: 150px;
}

.opportunity-summary {
  color: var(--text);
  line-height: 1.65;
  margin: 22px auto 18px;
  max-width: 920px;
}

.opportunity-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
  text-align: left;
}

.opportunity-benefits div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f6f8;
  border-radius: 6px;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--text);
}

.opportunity-benefits span {
  align-items: center;
  border: 2px solid #16a34a;
  border-radius: 999px;
  color: #16a34a;
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.opportunity-bottom-button {
  min-width: 160px;
}

@media (max-width: 720px) {
  .opportunity-panel {
    padding: 18px;
  }

  .opportunity-grid,
  .opportunity-benefits {
    grid-template-columns: 1fr;
  }

  .opportunity-grid {
    text-align: center;
  }

  .opportunity-copy {
    text-align: left;
  }

  .opportunity-button,
  .opportunity-bottom-button {
    width: 100%;
  }
}

.quiz-sponsored-note {
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.45;
  margin-top: 8px !important;
}

/* ─── Category Cards ─── */
.categories-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.category-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

.category-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(39, 93, 245, 0.1);
  transform: translateY(-2px);
}

.category-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--brand);
}

.category-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ─── FAQ List ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.faq-item a {
  color: var(--brand);
  text-decoration: underline;
}