/* =========================================================================
   CareerZoom theme base styles
   Shared by every page: tokens, isolation, nav, mobile menu, buttons,
   section defaults, reveal animation, footer, document picker modal,
   and blog/article layout. Page-specific CSS lives in each page's content.
   ========================================================================= */

:root {
  --blue-deep:   #1a2f6e;
  --blue-mid:    #2552cc;
  --blue-bright: #3b6ef8;
  --blue-light:  #e8eeff;
  --blue-pale:   #f2f5ff;
  --text-dark:   #0d1630;
  --text-body:   #3a4560;
  --text-muted:  #5a6480;
  --white:       #ffffff;
  --border:      #dde3f5;
  --radius:      14px;
  --shadow-card: 0 4px 24px rgba(53,82,180,0.10);
  --shadow-lg:   0 12px 48px rgba(53,82,180,0.18);
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  overflow-x: hidden;
}

/* ====== ISOLATION ====== */
#cz-page {
  all: initial;
  --cz-accent: var(--blue-mid);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #0d1630;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
#cz-page *, #cz-page *::before, #cz-page *::after {
  box-sizing: border-box;
}
#cz-page :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl) {
  margin: 0;
}
#cz-page :where(ul[class], ol[class]) {
  list-style: none;
  padding: 0;
}
#cz-page :where(h1, h2, h3, h4) {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
}
#cz-page :where(img, svg, video) {
  max-width: 100%;
}
#cz-page :where(img) {
  height: auto;
}
#cz-page :where(button) {
  font-family: 'DM Sans', sans-serif;
}

/* ====== ACCESSIBILITY ====== */
#cz-page .visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
#cz-page .cz-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 3000;
  background: var(--blue-mid);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
#cz-page .cz-skip-link:focus {
  top: 16px;
}
#cz-page :where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

/* ====== NAV ======
   Same menu, styles and sizes as the one built into the landing pages. */
#cz-page .cz-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cz-page .nav-inner {
  width: 100%;
  max-width: 1160px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#cz-page .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
#cz-page .nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--blue-deep);
  letter-spacing: -0.4px;
}
#cz-page .cz-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#cz-page .cz-nav .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s;
}
#cz-page .nav-cta {
  padding: 10px 20px;
  border-radius: 50px !important;
  background: #2552cc !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  transition: background 0.2s !important;
}
#cz-page .nav-item.has-dropdown { position: relative; }
#cz-page .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-body);
  padding: 0;
  transition: color 0.2s;
}
#cz-page .nav-trigger[aria-expanded="true"] { color: var(--blue-mid); }
#cz-page .nav-trigger .chev {
  width: 11px;
  height: 11px;
  transition: transform 0.22s;
}
#cz-page .nav-item.has-dropdown:hover .nav-trigger .chev,
#cz-page .nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
#cz-page .nav-item.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
}
#cz-page .nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(53,82,180,0.14);
  padding: 10px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1001;
}
#cz-page .nav-item.has-dropdown:hover .nav-dropdown,
#cz-page .nav-item.has-dropdown:focus-within .nav-dropdown,
#cz-page .nav-item.has-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
#cz-page .cz-nav .nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
#cz-page .cz-nav .nav-dropdown a[aria-current="page"] {
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-weight: 600;
}
#cz-page .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
#cz-page .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}

#cz-page .mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
  box-shadow: var(--shadow-card);
}
#cz-page .mobile-menu.open { display: flex; }
#cz-page .mobile-menu .mm-group {
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--blue-pale);
}
#cz-page .mobile-menu .mm-group:last-of-type { border-bottom: none; }
#cz-page .mobile-menu .mm-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-mid);
  padding: 10px 0 6px;
}
#cz-page .mobile-menu .mm-group a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
}
#cz-page .mobile-menu .mm-group a[aria-current="page"] {
  color: var(--blue-mid);
  font-weight: 600;
}
#cz-page .mobile-menu .mm-cta {
  display: block;
  margin-top: 14px;
  background: var(--blue-mid);
  border-radius: 40px;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff !important;
}

@media (hover: hover) {
  #cz-page .cz-nav .nav-links a:hover,
  #cz-page .nav-trigger:hover { color: var(--blue-mid); }
  #cz-page .nav-cta:hover { background: var(--blue-deep) !important; color: #ffffff !important; }
  #cz-page .cz-nav .nav-dropdown a:hover { background: var(--blue-pale); color: var(--blue-mid); }
}
@media (min-width: 961px) {
  #cz-page .cz-nav .nav-links { margin-right: 28px; }
}

/* Logged-in WordPress admin bar pushes the fixed nav down */
body.admin-bar #cz-page .cz-nav { top: 32px; }
body.admin-bar #cz-page .mobile-menu { top: 100px; }
@media (max-width: 782px) {
  body.admin-bar #cz-page .cz-nav { top: 46px; }
  body.admin-bar #cz-page .mobile-menu { top: 114px; }
}

/* ====== BUTTONS ====== */
#cz-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-mid) !important;
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 32px;
  border-radius: 50px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 4px 20px rgba(37,82,204,0.35) !important;
  white-space: nowrap;
}
#cz-page .btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }
#cz-page .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white) !important;
  color: var(--blue-deep) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  padding: 18px 40px;
  border-radius: 50px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 28px rgba(0,0,0,0.18);
}
#cz-page .cz-text-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue-mid);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  #cz-page .btn-primary:hover {
    background: var(--blue-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,82,204,0.45) !important;
  }
  #cz-page .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(0,0,0,0.25);
  }
}

/* ====== SECTION DEFAULTS (pages can override) ====== */
#cz-page section {
  padding: 88px 24px;
}
#cz-page .section-inner {
  max-width: 1160px;
  margin: 0 auto;
}
#cz-page .section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cz-accent);
  margin-bottom: 14px;
}

/* ====== REVEAL ANIMATION ====== */
/* Visible by default; cz.js adds .js-reveal-ready to #cz-page to enable the effect */
#cz-page .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
#cz-page.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}
#cz-page.js-reveal-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
#cz-page .reveal-delay-1 { transition-delay: 0.1s; }
#cz-page .reveal-delay-2 { transition-delay: 0.2s; }
#cz-page .reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  #cz-page *, #cz-page *::before, #cz-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  #cz-page.js-reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ====== FOOTER ====== */
#cz-page .cz-footer {
  background: var(--blue-deep);
  padding: 40px 24px;
  color: rgba(255,255,255,0.75);
}
#cz-page .footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}
#cz-page .footer-logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}
#cz-page .footer-tagline {
  max-width: 340px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
#cz-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#cz-page .footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
#cz-page .footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#cz-page .footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
@media (hover: hover) {
  #cz-page .footer-legal a:hover { color: var(--white); }
}

/* ====== DOCUMENT PICKER MODAL ====== */
#cz-page .cz-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13,22,48,0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
#cz-page .cz-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transition: opacity 0.25s ease;
}
#cz-page .cz-modal {
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
}
#cz-page .cz-modal-backdrop.open .cz-modal {
  transform: translateY(0) scale(1);
}
#cz-page .cz-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 0;
}
#cz-page .cz-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-dark);
}
#cz-page .cz-modal-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
#cz-page .cz-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--text-body);
  cursor: pointer;
  transition: background-color 0.2s;
}
#cz-page .cz-modal-body {
  padding: 22px 28px 28px;
}
#cz-page .cz-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#cz-page .cz-modal-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
#cz-page .cz-modal-card.blue-card   { background: var(--blue-pale); }
#cz-page .cz-modal-card.teal-card   { background: #f0fafa; }
#cz-page .cz-modal-card.purple-card { background: #f5f0ff; }
#cz-page .cz-modal-card.amber-card  { background: #fffbf0; }
#cz-page .cz-modal-card.coming {
  opacity: 0.6;
  cursor: default;
}
#cz-page .cz-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
#cz-page .cz-modal-icon.blue-i   { background: var(--blue-light); }
#cz-page .cz-modal-icon.teal-i   { background: #b2dfdb; }
#cz-page .cz-modal-icon.purple-i { background: #d1c4e9; }
#cz-page .cz-modal-icon.amber-i  { background: #ffe082; }
#cz-page .cz-modal-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#cz-page .cz-modal-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
#cz-page .cz-modal-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
}
#cz-page .cz-modal-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #ffe082;
  color: #6b4a00;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
@media (hover: hover) {
  #cz-page .cz-modal-close:hover { background: var(--blue-light); }
  #cz-page .cz-modal-card.blue-card:hover {
    border-color: var(--blue-mid);
    box-shadow: 0 6px 24px rgba(37,82,204,0.15);
    transform: translateY(-2px);
  }
  #cz-page .cz-modal-card.teal-card:hover {
    border-color: #009688;
    box-shadow: 0 6px 24px rgba(0,150,136,0.15);
    transform: translateY(-2px);
  }
  #cz-page .cz-modal-card.purple-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 6px 24px rgba(124,58,237,0.15);
    transform: translateY(-2px);
  }
}

/* ====== BLOG / ARTICLE / 404 ====== */
#cz-page .cz-article-wrap {
  padding: 136px 24px 88px;
  background: linear-gradient(180deg, var(--blue-pale) 0%, #ffffff 320px);
}
#cz-page .cz-article-inner {
  max-width: 760px;
  margin: 0 auto;
}
#cz-page .cz-article-meta {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
#cz-page .cz-article-title {
  margin-bottom: 28px;
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
}
#cz-page .cz-article-thumb {
  margin-bottom: 28px;
}
#cz-page .cz-article-thumb img {
  width: 100%;
  border-radius: var(--radius);
}
#cz-page .cz-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
}
#cz-page .cz-article-content { overflow-wrap: break-word; }
#cz-page .cz-article-content :where(p, ul, ol, table, blockquote, figure, pre) { margin: 0 0 1.1em; }
#cz-page .cz-article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
}
#cz-page .cz-article-content td,
#cz-page .cz-article-content th {
  padding: 8px 10px;
  border: 1px solid var(--border);
  vertical-align: top;
}
#cz-page .cz-article-content h2 { margin: 1.8em 0 0.6em; font-size: 28px; line-height: 1.25; letter-spacing: -0.6px; }
#cz-page .cz-article-content h3 { margin: 1.5em 0 0.5em; font-size: 21px; line-height: 1.3; }
#cz-page .cz-article-content a { color: var(--blue-mid); text-underline-offset: 3px; }
#cz-page .cz-article-content ul,
#cz-page .cz-article-content ol { padding-left: 1.4em; }
#cz-page .cz-article-content ul { list-style: disc; }
#cz-page .cz-article-content ol { list-style: decimal; }
#cz-page .cz-article-content li + li { margin-top: 0.4em; }
#cz-page .cz-article-content blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue-bright);
  color: var(--text-dark);
}
#cz-page .cz-article-content img { border-radius: 10px; }
#cz-page .cz-article-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}
#cz-page .cz-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#cz-page .cz-post-card {
  padding: 22px 24px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
#cz-page .cz-post-card-title {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}
#cz-page .cz-post-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}
#cz-page .cz-post-card-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
}
#cz-page .pagination,
#cz-page .navigation.pagination {
  margin-top: 32px;
}
#cz-page .pagination .page-numbers {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-body);
  text-decoration: none;
}
#cz-page .pagination .page-numbers.current {
  background: var(--blue-mid);
  color: var(--white);
}
@media (hover: hover) {
  #cz-page .cz-post-card:hover {
    border-color: var(--blue-bright);
    box-shadow: var(--shadow-card);
  }
  #cz-page .cz-post-card-title a:hover { color: var(--blue-mid); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  #cz-page .cz-nav .nav-links { display: none; }
  #cz-page .hamburger { display: flex; }

  #cz-page section { padding: 56px 24px; }
  #cz-page .cz-article-wrap { padding: 112px 24px 64px; }
}
@media (min-width: 961px) {
  #cz-page .mobile-menu { display: none !important; }
}
@media (max-width: 540px) {
  #cz-page section { padding: 48px 20px; }
  #cz-page .nav-inner { padding: 0 16px; }
  #cz-page .cz-modal-header { padding: 22px 20px 0; }
  #cz-page .cz-modal-body { padding: 18px 20px 22px; }
  #cz-page .cz-modal-grid { grid-template-columns: 1fr; }
  #cz-page .cz-modal-card { padding: 14px; }
  #cz-page .footer-bottom { flex-direction: column; align-items: flex-start; }
  #cz-page .cz-article-wrap { padding: 104px 20px 56px; }
  #cz-page .btn-primary { font-size: 15px; padding: 15px 22px; }
  #cz-page .btn-white { font-size: 15px; padding: 15px 28px; }
}
