/* Career Calling Courses: the course directory's own pieces, on top of the jobs design (ccc-base + ccc-polish). */
:root {
  --ccc-navy: #01216e;
  --ccc-navy-deep: #00143f;
  --ccc-green: #9bad00;
  --ccc-green-deep: #6f7c00;
  --ccc-green-soft: #f2f6dc;
  --ccc-ink: #1b2233;
  --ccc-ink-2: #4c5468;
  --ccc-mist: #f5f7fb;
  --ccc-line: #e3e8f2;
  --ccc-radius: 14px;
  --ccc-shadow: 0 1px 2px rgba(1, 20, 63, .06), 0 8px 24px rgba(1, 33, 110, .08);
}

/* logo in the header and footer */
#cshero-header-logo img { max-height: 78px; width: auto; height: auto; }
.logo-footer img { max-width: 220px; height: auto; }

/* green accents where the jobs design had purple highlights */
#site-navigation .menu-main-menu > li.current-menu-item > a::after,
#site-navigation .menu-main-menu > li > a:hover::after { background: var(--ccc-green) !important; }
.job-heading span, .entry-content h2 span { color: var(--ccc-green-deep) !important; }

/* hero */
.ccc-hero {
  position: relative; color: #fff; padding: 110px 0 96px; margin: 0 !important;
  width: 100vw; margin-left: calc(50% - 50vw) !important;
  background: linear-gradient(105deg, rgba(0, 20, 63, .94) 0%, rgba(1, 33, 110, .84) 50%, rgba(1, 33, 110, .5) 100%),
              url(/wp-content/uploads/2019/06/Career-Calling-JOBS-2.jpg) center 35% / cover no-repeat;
}
.ccc-hero > .container { position: relative; }
.ccc-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.ccc-hero p { color: rgba(255, 255, 255, .9); font-size: 18px; max-width: 46ch; }
.ccc-hero-search { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 16px; padding: 12px; max-width: 860px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.ccc-hero-search input, .ccc-hero-search select { flex: 1 1 220px; height: 52px; border: 0; border-radius: 8px; padding: 0 16px; font-size: 16px; color: var(--ccc-ink); background: #fff; }
.ccc-hero-search .btn { height: 52px; padding: 0 28px; background: var(--ccc-green) !important; border-color: var(--ccc-green) !important; color: var(--ccc-navy-deep) !important; font-weight: 700; }
.ccc-hero-search .btn:hover { background: #b2c41a !important; }
.ccc-hero-meta { font-size: 14px !important; color: rgba(255, 255, 255, .78) !important; }

.ccc-section-title { text-align: center; font-weight: 600; color: var(--ccc-navy); margin: 70px 0 30px; letter-spacing: -.01em; }

/* course cards (jobs card markup) */
.ccc-card .loop-title { display: block; }
.ccc-code { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ccc-green-deep); margin-bottom: 4px; }
.ccc-card .entry-title { text-transform: none !important; font-size: 18px !important; line-height: 1.35 !important; }
.ccc-card .loop-locations { color: var(--ccc-ink-2); font-size: 14px; margin: 6px 0 8px; }
.ccc-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ccc-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--ccc-mist); border: 1px solid var(--ccc-line); color: var(--ccc-ink-2); }
.ccc-card .job-price { font-size: 14px; line-height: 1.9; color: var(--ccc-ink-2); }
.ccc-card .job-price .fa { width: 18px; color: var(--ccc-navy); }
.ccc-card[hidden] { display: none !important; }
.ccc-group { font-size: 20px; color: var(--ccc-navy); margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ccc-green-soft); }
.ccc-no-results { padding: 40px 0; font-size: 16px; }

/* directory filters */
.ccc-filters input, .ccc-filters select { width: 100%; height: 46px; border: 1px solid var(--ccc-line); border-radius: 8px; padding: 0 12px; background: #fff; }
.ccc-filters .btn { margin-top: 6px; }
.ccc-reset { margin-left: 10px; font-size: 14px; }
.ccc-list-cta { background: var(--ccc-navy); color: #fff; padding: 24px; border-radius: var(--ccc-radius); margin-top: 24px; }
.ccc-list-cta .wg-title, .ccc-list-cta p { color: #fff !important; }
.ccc-list-cta .btn { background: var(--ccc-green) !important; border-color: var(--ccc-green) !important; color: var(--ccc-navy-deep) !important; }

/* course page */
.ccc-course .entry-content { font-size: 16px; line-height: 1.7; color: var(--ccc-ink); }
.ccc-course .entry-content p, .ccc-course .entry-content li { max-width: 72ch; }
.ccc-table { overflow-x: auto; margin: 10px 0 30px; border: 1px solid var(--ccc-line); border-radius: var(--ccc-radius); }
.ccc-table table { width: 100%; border-collapse: collapse; margin: 0; }
.ccc-table th, .ccc-table td { padding: 12px 16px; border-bottom: 1px solid var(--ccc-line); vertical-align: top; text-align: left; font-size: 15px; line-height: 1.6; }
.ccc-table tr:last-child th, .ccc-table tr:last-child td { border-bottom: 0; }
.ccc-table th { width: 30%; background: var(--ccc-mist); color: var(--ccc-navy); font-weight: 600; }
.ccc-source { margin-top: 30px; padding: 22px 24px; background: var(--ccc-green-soft); border-radius: var(--ccc-radius); }
.ccc-source .btn { margin: 6px 14px 6px 0; }
.ccc-tga { font-size: 14px; text-underline-offset: 3px; }
.ccc-side .widget { background: #fff; border: 1px solid var(--ccc-line); border-radius: var(--ccc-radius); box-shadow: var(--ccc-shadow); padding: 24px; margin-bottom: 24px; }
.ccc-provider-name { font-size: 20px; font-weight: 700; margin: 0; }
.ccc-provider-name a { color: var(--ccc-navy); }
.ccc-small { font-size: 14px; color: var(--ccc-ink-2); line-height: 1.6; }
.ccc-related ul { list-style: none; padding: 0; margin: 0; }
.ccc-related li { padding: 10px 0; border-bottom: 1px solid var(--ccc-line); display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ccc-related li:last-child { border-bottom: 0; }
.ccc-related li span { color: var(--ccc-ink-2); font-size: 12px; white-space: nowrap; }

/* forms */
.ccc-form input:not([type=checkbox]):not([type=submit]):not([type=hidden]), .ccc-form textarea, .ccc-form select {
  width: 100%; border: 1px solid var(--ccc-line); border-radius: 8px; padding: 12px 14px; font-size: 15px; background: #fff; }
.ccc-form-title { font-size: 20px; color: var(--ccc-navy); margin: 0 0 16px; }
.ccc-consent label { font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--ccc-ink-2); }
.ccc-consent input { margin-right: 6px; }
.ccc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ccc-label { font-weight: 600; color: var(--ccc-navy); margin-top: 6px; }
.ccc-rows td { padding: 6px !important; }
.ccc-rows input { padding: 8px 10px !important; font-size: 14px !important; }
.ccc-apply { background: #fff; border: 1px solid var(--ccc-line); border-radius: var(--ccc-radius); padding: 28px; box-shadow: var(--ccc-shadow); }

/* plain pages */
.ccc-page { padding: 60px 15px 80px; }
.ccc-lead { font-size: 19px; line-height: 1.6; color: var(--ccc-ink); max-width: 68ch; }
.ccc-prose p { font-size: 16px; line-height: 1.75; max-width: 70ch; }
.ccc-h2 { font-size: 24px; color: var(--ccc-navy); margin: 30px 0 12px; }
.ccc-steps ol { padding-left: 1.2em; }
.ccc-steps li { margin-bottom: 14px; line-height: 1.6; }
.ccc-providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 30px 0; }
.ccc-provider { display: block; padding: 26px; border: 1px solid var(--ccc-line); border-radius: var(--ccc-radius); box-shadow: var(--ccc-shadow); color: var(--ccc-ink); transition: transform .3s, box-shadow .3s; }
.ccc-provider:hover { transform: translateY(-3px); text-decoration: none; }
.ccc-provider h3 { color: var(--ccc-navy); margin: 0 0 6px; }
.ccc-provider span { color: var(--ccc-green-deep); font-weight: 600; font-size: 14px; }
.ccc-cta-band { margin-top: 40px; padding: 30px; border-radius: var(--ccc-radius); background: var(--ccc-navy); color: #fff; }
.ccc-cta-band h3, .ccc-cta-band p { color: #fff; }
.ccc-cta-band .btn, .ccc-btn-light { background: var(--ccc-green) !important; border-color: var(--ccc-green) !important; color: var(--ccc-navy-deep) !important; font-weight: 700; }
.ccc-white { color: #fff; text-align: center; font-size: 17px; max-width: 46ch; margin: 0 auto 20px; }

/* fields of study tiles */
.ccc-fields { margin-top: 10px; }
.ccc-field, .ccc-tile { display: block; color: var(--ccc-navy); padding: 6px 0; }
.ccc-field:hover, .ccc-tile:hover { text-decoration: none; }
.ccc-field .fa { font-size: 26px; color: var(--ccc-green-deep); margin-bottom: 8px; }
.ccc-field h3, .ccc-tile h3 { margin: 0 0 4px; }
.ccc-field span, .ccc-count { font-size: 13px; color: var(--ccc-ink-2); }

@media (max-width: 767px) {
  .ccc-hero { padding: 56px 0 48px; }
  .ccc-grid2 { grid-template-columns: 1fr; }
  .ccc-table th { width: 38%; }
  .ccc-table th, .ccc-table td { padding: 10px 12px; font-size: 14px; }
}

/* the theme's photo bands and process icons have purple baked into the images: turn them to the navy family */
.entry-content > .vc_row.row-overlay, .entry-content > .vc_row.vc_custom_1571873224498 { filter: hue-rotate(-52deg) saturate(.9); }
.entry-content > .vc_row.vc_custom_1571873224498 .btn { filter: hue-rotate(52deg); }

/* the jobs theme hid the last row of the title list (applications count); courses use it for the fee */
.single-jobboard-post-jobs #cms-page-title li:last-child { display: list-item !important; }

#cms-page-title > .container { position: relative; z-index: 2; }

/* ---------- save and compare buttons ---------- */
.ccc-tools { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ccc-save, .ccc-cmp {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ccc-line); background: #fff; color: var(--ccc-ink-2); font-size: 13px; font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.ccc-save:hover, .ccc-cmp:hover { border-color: var(--ccc-navy); color: var(--ccc-navy); }
.ccc-save.is-on { background: #fdecef; border-color: #f3b4c0; color: #b0123a; }
.ccc-save.is-on .fa { animation: ccc-pop .35s cubic-bezier(.16, 1, .3, 1); }
.ccc-cmp.is-on { background: var(--ccc-green-soft); border-color: var(--ccc-green); color: var(--ccc-green-deep); }
@keyframes ccc-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.ccc-card .loop-actions { display: flex; flex-direction: column; align-items: flex-end; }
.ccc-title-tools .ccc-save, .ccc-title-tools .ccc-cmp { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.ccc-title-tools .ccc-save.is-on { background: #fff; color: #b0123a; }
.ccc-title-tools .ccc-cmp.is-on { background: var(--ccc-green); color: var(--ccc-navy-deep); border-color: var(--ccc-green); }
.ccc-scope { margin: 18px 0 4px; font-size: 15px; color: #fff !important; opacity: .92; }
.ccc-scope .fa { color: var(--ccc-green); margin-right: 4px; }
.ccc-scope a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- qualification ladder: each level a step up ---------- */
.ccc-ladder { list-style: none; padding: 0; margin: 18px 0 34px; display: grid; gap: 8px; }
.ccc-step {
  display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 12px;
  margin-left: calc(var(--i) * 18px); padding: 12px 16px; border-radius: 10px;
  background: #fff; border: 1px solid var(--ccc-line); box-shadow: 0 1px 2px rgba(1, 20, 63, .05);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.ccc-step:hover { transform: translateX(4px); box-shadow: var(--ccc-shadow); }
.ccc-step-level { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ccc-green-deep); }
.ccc-step a { color: var(--ccc-navy); font-weight: 600; }
.ccc-step-code { font-size: 12px; color: var(--ccc-ink-2); }
.ccc-step.is-current { background: var(--ccc-navy); border-color: var(--ccc-navy); }
.ccc-step.is-current a, .ccc-step.is-current .ccc-step-code { color: #fff; }
.ccc-step.is-current .ccc-step-level { color: var(--ccc-green); }
.ccc-step.is-current a::after { content: "  (this course)"; font-weight: 400; opacity: .8; }

/* ---------- compare tray ---------- */
.ccc-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: var(--ccc-navy-deep); color: #fff;
  box-shadow: 0 -8px 30px rgba(0, 20, 63, .25); animation: ccc-rise .4s cubic-bezier(.16, 1, .3, 1); }
@keyframes ccc-rise { from { transform: translateY(100%); } to { transform: none; } }
.ccc-tray-inner { max-width: 1170px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ccc-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.ccc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; }
.ccc-chip button { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 22px; height: 22px; border-radius: 50%; line-height: 20px; cursor: pointer; }
.ccc-tray .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
body:has(.ccc-tray) { padding-bottom: 76px; }
.ccc-flash { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; z-index: 9991; background: #1b2233; color: #fff;
  padding: 10px 18px; border-radius: 8px; font-size: 14px; transition: opacity .25s, transform .25s; pointer-events: none; }
.ccc-flash.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- compare table ---------- */
.ccc-compare-table th[scope=col] { background: var(--ccc-navy); color: #fff; font-size: 13px; letter-spacing: .06em; width: auto; }
.ccc-compare-table thead th:first-child { background: var(--ccc-navy); }
.ccc-compare-table td { min-width: 220px; }
.ccc-compare-table td.is-best { background: var(--ccc-green-soft); font-weight: 600; }
.ccc-linkbtn { border: 0; background: none; color: var(--ccc-ink-2); text-decoration: underline; cursor: pointer; margin-left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- directory toolbar ---------- */
.ccc-toolbar { display: flex !important; align-items: center; gap: 18px; flex-wrap: wrap; }
.ccc-sort { margin: 0 0 0 auto; font-weight: 600; color: var(--ccc-navy); font-size: 14px; }
.ccc-sort select { margin-left: 8px; height: 38px; border: 1px solid var(--ccc-line); border-radius: 8px; padding: 0 10px; font-weight: 400; }
.ccc-shortlist-link { font-weight: 600; font-size: 14px; }
.ccc-shortlist-link .fa { color: #b0123a; }
.ccc-count-badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ccc-navy); color: #fff; font-size: 12px; text-align: center; }

/* ---------- shortlist ---------- */
.ccc-shortlist { padding: 50px 0 70px; }
.ccc-shortlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 20px; }
.ccc-mini { padding: 22px; border: 1px solid var(--ccc-line); border-radius: var(--ccc-radius); box-shadow: var(--ccc-shadow); background: #fff; }
.ccc-mini h3 { font-size: 18px; margin: 4px 0 8px; }
.ccc-mini h3 a { color: var(--ccc-navy); }
.ccc-mini p { font-size: 14px; color: var(--ccc-ink-2); margin: 0; }

/* ---------- hero field links, field pages ---------- */
.ccc-hero-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 860px !important; }
.ccc-hero-fields a { color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); transition: background-color .2s, color .2s; }
.ccc-hero-fields a:hover { background: var(--ccc-green); border-color: var(--ccc-green); color: var(--ccc-navy-deep); text-decoration: none; }
.ccc-field-list { list-style: none; padding: 0; margin: 0; }
.ccc-field-list li { padding: 8px 0; border-bottom: 1px solid var(--ccc-line); }
.ccc-field-list li:last-child { border-bottom: 0; }

@media (max-width: 767px) {
  .ccc-step { grid-template-columns: 1fr; gap: 2px; margin-left: calc(var(--i) * 8px); }
  .ccc-card .loop-actions { align-items: stretch; }
  .ccc-sort { margin-left: 0; }
  .ccc-tray-inner strong { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ccc-tray, .ccc-save.is-on .fa { animation: none; }
}

/* theme button and link rules reach these; keep them as designed */
.ccc-chip button { padding: 0 !important; min-width: 0 !important; width: 22px !important; height: 22px !important; font-size: 16px !important; line-height: 22px !important; border-radius: 50% !important; box-shadow: none !important; transform: none !important; }
.entry-content .ccc-step.is-current a { color: #fff !important; }
.entry-content a.btn, .ccc-source a.btn { color: #fff !important; text-decoration: none !important; }
@media (max-width: 767px) {
  .ccc-tray .ccc-chips { display: none; }
  .ccc-tray-inner { justify-content: space-between; flex-wrap: nowrap; }
  .ccc-tray-inner strong { width: auto; }
  body:has(.ccc-tray) { padding-bottom: 64px; }
}
