/* ═══════════════════════════════════════════════════════════════════════════
   Career Page — Standalone styles
   ═══════════════════════════════════════════════════════════════════════════ */

.civi-career-body,
.civi-career-body *,
.civi-career-body *::before,
.civi-career-body *::after {
  box-sizing: border-box;
}

.civi-career-body .site-header,
.civi-career-body .site-footer,
.civi-career-body .civi-top-bar,
.civi-career-body #wpadminbar {
  display: none !important;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
.civi-career-body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: #f4f6fb;
  color: #1c1c2e;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cc-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.cc-nav {
  background: #fff;
  border-bottom: 1px solid #eaeaf0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cc-nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cc-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1c1c2e;
  font-weight: 700;
  font-size: 16px;
}

.cc-nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.cc-logo-initials {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand, #2958ff);
  color: var(--brand-text, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.cc-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--brand, #2958ff);
  color: var(--brand-text, #fff);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cc-nav-cta:hover {
  opacity: 0.85;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.cc-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 64px 0 56px;
}

/* Blurred logo as background — picks up brand color naturally */
.cc-hero-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(2.5) brightness(0.55);
  transform: scale(1.15);
  z-index: 0;
}

/* Dark overlay for readability */
.cc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(10 10 30 / 0%);
  z-index: 1;
}

.cc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.cc-hero-logo {
  flex-shrink: 0;
}

.cc-hero-logo img {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cc-logo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.cc-hero-info {
  flex: 1;
  min-width: 0;
}

.cc-hero-info h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #fff;
}

.cc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.cc-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: 0.9;
}

.cc-hero-meta a {
  color: inherit;
  text-decoration: underline;
}

.cc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #fff;
  color: #1c1c2e;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.cc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cc-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s;
}
.cc-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Section shared ────────────────────────────────────────────────────────── */
.cc-section-title {
  font-size: 18px;
  margin: 0 0 24px;
  color: #1c1c2e;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-jobs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: #1c1c2e;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* ── About ───────────────────────────────────────────────────────────────── */
.cc-about {
  padding: 60px 0;
  background: #fff;
}

.cc-about-content {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  max-width: 680px;
}

.cc-about-content p {
  margin: 0 0 16px;
}
.cc-about-content p:last-child {
  margin-bottom: 0;
}

/* ── Jobs ────────────────────────────────────────────────────────────────── */
.cc-jobs {
  padding: 60px 0;
  background: #f4f6fb;
}

.cc-jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.cc-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-job-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaf0;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cc-job-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--brand, #2958ff);
}

.cc-job-card-main {
  flex: 1;
  min-width: 0;
}

.cc-job-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1c1c2e;
}

.cc-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-job-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-bg, #2958ff18);
  color: var(--brand, #2958ff);
}

.cc-job-tag--location {
  background: #f0f0f0;
  color: #555;
}
.cc-job-tag--type {
  background: #e8f5e9;
  color: #2e7d32;
}
.cc-job-tag--salary {
  background: #fff3e0;
  color: #e65100;
}

.cc-job-tag--deadline {
  background: #fce4ec;
  color: #c62828;
}

.cc-no-jobs {
  text-align: center;
  padding: 60px 24px;
  color: #888;
}
.cc-no-jobs i {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
  display: block;
}
.cc-no-jobs p {
  font-size: 16px;
  margin: 0;
}

/* ── Load More ───────────────────────────────────────────────────────────── */
.cc-load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.cc-btn-load-more {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 36px;
  background: var(--brand, #2958ff);
  color: var(--brand-text, #fff);
  border: none;
  border-radius: 10px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition:
    opacity 0.2s,
    transform 0.15s;
  outline: none;
}
.cc-btn-load-more:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}
.cc-btn-load-more:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.cc-contact {
  padding: 60px 0;
  background: #fff;
}

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

.cc-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--brand-bg, #2958ff18);
  border-radius: 12px;
  text-decoration: none;
  color: #1c1c2e;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.cc-contact-card:hover {
  border-color: var(--brand, #2958ff);
}

.cc-contact-card i {
  font-size: 22px;
  color: var(--brand, #2958ff);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.cc-contact-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-contact-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}
.cc-contact-card strong {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.cc-footer {
  background: #1c1c2e;
  color: #aaa;
  padding: 36px 24px;
}

.cc-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cc-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.cc-footer-brand img {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.cc-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}
.cc-footer-social a:hover {
  background: var(--brand, #2958ff);
}

.cc-footer-credit {
  font-size: 13px;
  margin: 0;
}
.cc-footer-credit a {
  color: var(--brand, #2958ff);
  text-decoration: none;
}

/* Ensure [hidden] always wins over display:flex/block rules */
[hidden] {
  display: none !important;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.cc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e8e8e8;
  border-top-color: #1c1c2e;
  border-radius: 50%;
  animation: cc-spin 0.7s linear infinite;
}
@keyframes cc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Job description content (shared) ────────────────────────────────────── */
.cc-panel-content p {
  margin: 0 0 14px;
}
.cc-panel-content ul,
.cc-panel-content ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.cc-panel-content li {
  margin-bottom: 5px;
}
.cc-panel-content h3,
.cc-panel-content h4 {
  color: #1c1c2e;
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.cc-panel-content strong {
  color: #1c1c2e;
}

/* ── Info table (shared) ─────────────────────────────────────────────────── */
.cc-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cc-info-table tr {
  border-bottom: 1px solid #f0f0f0;
}
.cc-info-table tr:last-child {
  border-bottom: none;
}
.cc-info-label {
  padding: 10px 0;
  color: #888;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 40%;
}
.cc-info-value {
  padding: 10px 0;
  color: #1c1c2e;
  font-weight: 500;
}

/* ── Detail View ─────────────────────────────────────────────────────────── */
#cc-view-detail {
  background: #f4f6fb;
  min-height: 60vh;
  padding-bottom: 80px;
}

/* Hide both topbars while loader is active */
#cc-view-detail:has(#cc-dv-loader:not([hidden])) .cc-dv-topbar {
  display: none;
}

/* Top bar — sits below hero, before body content */
.cc-dv-topbar--top {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Action bar — sits at bottom of content, same style as the original header bar */
.cc-dv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 20px;
  margin-top: 32px;
  border-top: 1px solid #eaeaf0;
}

.cc-dv-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-dv-back {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  padding: 8px 0;
  transition: color 0.15s;
  font-family: inherit;
}
.cc-dv-back:hover {
  color: #1c1c2e;
}

.cc-dv-share {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  padding: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.cc-dv-share:hover {
  background: #e8e8e8;
  color: #1c1c2e;
}
.cc-dv-share--copied {
  width: auto;
  padding: 0 12px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 700;
}

.cc-dv-apply {
  display: inline-block;
  padding: 10px 24px;
  background: #1c1c2e;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.cc-dv-apply:hover {
  opacity: 0.85;
  color: #fff;
}

.cc-dv-hero {
  text-align: center;
  padding: 39px 16px 1px;
  max-width: 900px;
  margin: 0 auto;
}
.cc-dv-hero h1 {
  font-size: 30px;
  font-weight: 700;
  color: #1c1c2e;
  margin: 0 0 12px;
  line-height: 1.3;
}
.cc-dv-hero p {
  font-size: 15px;
  color: #777;
  margin: 0 0 8px;
}
.cc-dv-type-tag {
  display: inline;
  font-size: 15px;
  font-weight: 400;
  color: #777;
}

#cc-dv-deadline {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #c62828 !important;
}

.cc-days-left {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #e8f5e9;
  color: #2e7d32;
  vertical-align: middle;
  margin-left: 2px;
}
.cc-days-left--urgent {
  background: #fff3e0;
  color: #e65100;
}
.cc-days-left--expired {
  background: #fce4ec;
  color: #c62828;
}

.cc-dv-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
}

.cc-dv-body {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaf0;
}

.cc-dv-section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #bbb;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.cc-dv-error {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

.cc-dv-similar {
  max-width: 900px;
  margin: 48px auto 0;
}
.cc-dv-similar-title {
  margin-bottom: 16px !important;
}

@media (max-width: 640px) {
  .cc-dv-topbar {
    padding: 14px 0 16px;
    margin-top: 24px;
  }
  .cc-dv-hero {
    padding: 39px 0 1px;
  }
  .cc-dv-hero h1 {
    font-size: 20px;
  }
  .cc-dv-body {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .cc-dv-similar {
    margin-top: 24px;
  }
  .cc-dv-apply {
    padding: 9px 16px;
    font-size: 12px;
  }
}

/* ── Apply View ──────────────────────────────────────────────────────────── */
#cc-view-apply {
  background: #f4f6fb;
  min-height: 60vh;
  padding-bottom: 80px;
}

#cc-view-apply:has(#cc-av-loader:not([hidden])) .cc-dv-topbar {
  display: none;
}

.cc-av-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 8px;
}

.cc-av-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaf0;
}

.cc-av-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.cc-av-field label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.cc-av-req {
  color: #e53e3e;
}

.cc-av-field input[type="email"],
.cc-av-field input[type="tel"],
.cc-av-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1c1c2e;
  background: #fafafa;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.cc-av-field input:focus,
.cc-av-field textarea:focus {
  border-color: #2958ff;
  background: #fff;
}

.cc-av-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.cc-av-cv-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px dashed #d0d0e0;
  border-radius: 10px;
  cursor: pointer;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  background: #fafafa;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.cc-av-cv-box:hover {
  border-color: #2958ff;
  background: #f0f4ff;
  color: #2958ff;
}

.cc-av-cv-box.has-file {
  border-style: solid;
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.cc-av-cv-box svg {
  flex-shrink: 0;
}

.cc-av-cv-progress {
  height: 4px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.cc-av-cv-bar {
  height: 100%;
  background: #2958ff;
  width: 0%;
  transition: width 0.2s;
}

.cc-av-error {
  font-size: 13px;
  color: #e53e3e;
  padding: 8px 12px;
  background: #fff5f5;
  border-radius: 6px;
  border: 1px solid #fed7d7;
}

.cc-av-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.cc-av-info {
  font-size: 12px;
  color: #999;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.cc-av-submit {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.cc-av-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Success / already-applied / login states */
.cc-av-success {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cc-av-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1c1c2e;
  margin: 0;
}

.cc-av-success p {
  font-size: 15px;
  color: #666;
  margin: 0;
  max-width: 400px;
}

/* Call-to contact block */
.cc-av-callto {
  padding: 24px 0;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.cc-av-callto a {
  color: #2958ff;
}

@media (max-width: 640px) {
  .cc-av-form-wrap {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .cc-av-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .cc-av-submit {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cc-hero {
    padding: 40px 0 36px;
  }
  .cc-hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cc-hero-meta {
    justify-content: center;
  }
  .cc-hero-actions {
    justify-content: center;
  }
  .cc-hero-info h1 {
    font-size: 24px;
  }
  .cc-hero-logo img,
  .cc-logo-placeholder {
    width: 80px;
    height: 80px;
  }
  .cc-hero-bg {
    filter: blur(40px) saturate(2.5) brightness(0.5);
  }

  .cc-job-card {
    flex-direction: row;
    align-items: center;
  }

  .cc-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cc-nav-cta {
    display: none;
  }
}
