/*-------------------------------------------------------------------
  Custom Job Board Styles
-------------------------------------------------------------------*/

/* CSS Variables */
:root {
  /* Your existing */
  --cjb-primary: #0073aa; /* deep ocean blue */
  --cjb-primary-hover: #005077; /* darker for hover */

  /* New secondary — a softer teal for descriptive and background touches */
  --cjb-secondary: #33a0d8; /* your current, a bright sky blue */
  --cjb-secondary-light: #e6f7fd; /* ultra-light background */

  /* Accent — a Light blue to contrast the blues */
  --cjb-accent: #2bafe5; /* lively coral */
  --cjb-accent-hover: #2bafe5; /* slightly deeper */

  /* Text on accent pills */
  --cjb-text-light: #ffffff;
  --cjb-text-dark: #333333; /* for darker backgrounds */

  /* Muted grey for footers, borders, etc. */
  --cjb-muted: #6c7a89;
  --cjb-border: #d1e2eb;

  /* FILTERS – Simplified theme variables */
  --cjb-filter-bg: #f9fafb; /* container background */
  --cjb-filter-border: #e2e8f0; /* borders & separators */
  --cjb-filter-text: #333333; /* all filter text (headings, labels, counts) */
  --cjb-filter-accent: #0073aa; /* toggle hover & arrow, counts accent */
}

/*---------------------------------------------------
  Global Containers & Layout
---------------------------------------------------*/
#job-board {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* reset any rogue underlines inside the job board */
#job-board a {
  text-decoration: none;
  color: inherit;
}

/*---------------------------------------------------
  2) Make the entire card a link with hover border
---------------------------------------------------*/
#job-board .job-card {
  display: block;
  position: relative; /* for overlay */
  border: 1px solid var(--cjb-border);
  border-radius: 1rem; /* more rounded */
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#job-board .job-card:hover,
#job-board .job-card:focus {
  border-color: var(--cjb-primary);
  box-shadow: 0 0 0 3px var(--cjb-primary); /* thick “ring” */
  cursor: pointer;
}

/* Invisible full-card link overlay for screen readers */
#job-board .card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}

/* Pull the real title above the overlay so it remains tabbable */
#job-board .job-title {
  position: relative;
  z-index: 2;
}

/*---------------------------------------------------
  3) Header: title on left, date on right
---------------------------------------------------*/
#job-board .job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

#job-board .job-card-header .job-title {
  margin: 0;
  color: var(--cjb-primary);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

#job-board .job-card-header .job-title:hover {
  text-decoration: underline;
}

#job-board .job-card-header .job-start-date {
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--cjb-primary);
  font-size: 0.9em;
}

/* Perfectly center the calendar icon */
#job-board .job-card-header .cjb-icon-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  fill: currentColor;
}

/*---------------------------------------------------
  4) Salary & location row: flex inline icons
---------------------------------------------------*/
#job-board .job-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem 1rem;
  margin: 0;
}

#job-board .single-job-salary,
#job-board .single-job-location {
  display: flex;
  align-items: center;
  color: var(--cjb-primary);
  font-size: 0.95em;
}

/* Center money & pin icons */
#job-board .job-details-row .cjb-icon-money,
#job-board .job-details-row .cjb-icon-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-right: 0.25em;
  fill: currentColor;
}

/*---------------------------------------------------
  5) Description in secondary colour
---------------------------------------------------*/
#job-board .job-desc {
  color: var(--cjb-secondary);
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 1rem;
  margin-bottom: 1rem;
}

/*---------------------------------------------------
  6) Accent-coloured pills
---------------------------------------------------*/
#job-board .job-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

#job-board .job-taxonomies .pill {
  background: var(--cjb-accent);
  color: var(--cjb-text-light);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

/*---------------------------------------------------
  7) Footer
---------------------------------------------------*/
#job-board .job-card-footer {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  color: var(--cjb-muted);
}

/*---------------------------------------------------
  Pagination
---------------------------------------------------*/
.cjb-pagination {
  margin-top: 20px;
  text-align: center;
}

.cjb-pagination .cjb-page-btn {
  color: #000;
}
.cjb-pagination .cjb-page-btn.active {
  color: #fff;
  font-weight: 600; /* optional, to highlight current page */
}

.cjb-page-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 6px 12px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 3px;
}
.cjb-page-btn:hover,
.cjb-page-btn.active {
  background: var(--wp--preset--color--primary, var(--cjb-accent));
  color: #fff;
  border-color: var(--wp--preset--color--primary, var(--cjb-accent));
  font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .job-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  #job-search-btn,
  select {
    width: 100%;
  }
}

/*---------------------------------------------------
  Single Team Member: Two-Column Layout
---------------------------------------------------*/
body.team-member-page {
  padding: 2rem 0;
  background: #22374e;
}

.team-member-page {
  padding: 2rem 0;
  background: #22374e;
}

.member-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .member-columns {
    flex-wrap: nowrap;
  }
}

.team-member-page > .member-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ─── Left sidebar ─── */
.member-sidebar {
  flex: 0 0 300px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #22374e;
  border: 1px solid #22374e;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.member-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--cjb-border);
}

.member-name {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* Personal Info box */
.member-section-title {
  width: 100%;
  text-align: left;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.member-contact {
  width: 100%;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);

  display: flex; /* make it flex */
  justify-content: center; /* center horizontally */
  gap: 1rem; /* space between icons */
  flex-wrap: wrap; /* wrap on small screens */
}

.member-contact a {
  display: flex; /* center svg inside */
  align-items: center;
  justify-content: center;
  width: 40px; /* fixed size circle */
  height: 40px;
  border-radius: 100%;
  background: #22374e; /* light gray background for consistency */
  transition: background 0.2s ease;
  position: relative; /* needed for tooltip */
}

.member-contact a:hover {
  background: #0a66c2; /* slightly darker hover */
}

.member-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0; /* prevent squish */
}

/* Tooltip styling */
.member-contact a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px; /* show below the icon */
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 4px 8px;
  border-radius: 0.25rem;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.member-contact a:hover::after {
  opacity: 1;
}

/* Active Jobs counter box */
.member-counter {
  width: 100%;
  background: #fff;
  border: 1px solid var(--cjb-border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.member-counter .count {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cjb-primary);
}

/* ─── Right main ─── */
.member-main {
  flex: 1 1 0;
  min-width: 300px;
}

.member-bio {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #374151;
}

/*───────────────────────────────────────────────────────────────────
  Latest Positions (on single team-member page)
────────────────────────────────────────────────────────────────────*/

/* 1) Section heading */
.jobs-by-member .jobs-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* 2) Grid container */
.jobs-by-member .jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* 3) Each job card */
.jobs-by-member .job-card {
  background: #fff;
  border: 1px solid var(--cjb-border);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
/* (if you still want a hover state) */
.jobs-by-member .job-card:hover {
  border-color: var(--cjb-primary);
  box-shadow: 0 0 0 2px var(--cjb-primary);
}

/* 4) Location label at top of card */
.jobs-by-member .job-location {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--cjb-secondary);
  margin-bottom: 0.5rem;
}

/* 5) Title link */
.jobs-by-member .job-title a {
  color: var(--cjb-primary);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
/* keep :hover underline */
.jobs-by-member .job-title a:hover {
  text-decoration: underline;
}
/* force visited to stay the same colour */
.jobs-by-member .job-title a:visited {
  color: var(--cjb-primary);
}

/* 6) Excerpt text */
.jobs-by-member .job-excerpt {
  color: #4b5563;
  margin: 0.75rem 0;
  line-height: 1.4;
}

/* 7) View Job button */
.jobs-by-member .job-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--cjb-accent);
  color: var(--cjb-text-light);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}
.jobs-by-member .job-button:hover {
  background: var(--cjb-accent-hover);
}

/* 8) “No recent positions” message */
.jobs-by-member .jobs-none {
  font-style: italic;
  color: #6b7280;
}

.member-linkedin a {
  position: relative;
  padding-left: 1.5em; /* space for the icon */
  color: #0a66c2;
  text-decoration: none;
  font-weight: 600;
}
.member-linkedin a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1em;
  height: 1em;
  transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><title>LinkedIn</title><path fill="%230a66c2" d="M34,2.9C34,1.3,32.7,0,31.1,0H2.9C1.3,0,0,1.3,0,2.9v28.1C0,32.7,1.3,34,2.9,34h28.1c1.6,0,2.9-1.3,2.9-2.9 V2.9z M10.1,28H5.1V13.1h5V28z M7.6,11.1c-1.6,0-2.9-1.3-2.9-2.9s1.3-2.9,2.9-2.9c1.6,0,2.9,1.3,2.9,2.9S9.2,11.1,7.6,11.1z M28.9,28 H23.9v-7.6c0-1.8-0.6-3-2.2-3c-1.2,0-1.9,0.8-2.2,1.5c-0.1,0.2-0.1,0.5-0.1,0.8V28h-5c0,0,0.1-9.2,0-10.2h5v1.4 c0.7-1.1,1.9-2.6,4.6-2.6c3.4,0,6,2.2,6,7V28z"/></svg>')
    no-repeat center center;
  background-size: contain;
}
.member-linkedin a:hover {
  text-decoration: underline;
}

/*───────────────────────────────────────────────────────────────────
  Single Job Listing: Card & Layout
────────────────────────────────────────────────────────────────────*/

/* body.job-listing-section {
  background: #f7fafc;
} */

/* Section background & centering */
/* .job-listing-section {
  background: #f7fafc;
  padding: 2rem 0;
}
.job-listing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
} */

/* Card */
/* .job-listing-card {
  background: #fff;
  border: 1px solid var(--cjb-secondary);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
} */

/* Header flex: title left, recruiter right */
/* .job-header-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
}
.job-header-left {
  flex: 1;
}
.job-header-right {
  flex: 0 0 auto;
  margin-top: 0.5rem;
} */

/* Title */
/* .job-header-left .job-title {
  margin: 0;
  color: var(--cjb-primary);
  font-size: 1.75rem;
  font-weight: 700;
}
@media (min-width: 640px) {
  .job-header-left .job-title {
    font-size: 1.875rem;
  }
} */

/* Posted date below title */
/* .job-posted-date {
  font-size: .9em;
  color: var(--cjb-secondary);
  margin: .5rem 0 0;
} */

/* Divider */
/* .job-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
} */

/* Salary & start (2-column row) */
/* .job-details-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1.5rem;
}
.job-details-row > div {
  display: flex;
  align-items: center;
  font-size: .95em;
  color: var(--cjb-primary);
}
.job-details-row strong {
  margin-right: .25em;
  font-weight: 600;
} */

/* Taxonomy pills */
/* .job-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}
.job-taxonomies .pill {
  background: var(--cjb-accent);
  color: var(--cjb-text-light);
  border-radius: 9999px;
  padding: .25rem .75rem;
  font-size: .75rem;
} */

/* Content */
/* .job-content {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
  color: #374151;
} */

/* Application Form */
/* .application-container {
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  padding: 1.5rem;
  margin: 0 1.5rem 1.5rem;
} */

/* 2) Posted-by snippet (right column) */
.job-posted-by {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap; /* ensures items stay in one row */
}

.job-posted-by .recruiter-link {
  display: flex; /* make the link a flex container */
  align-items: center; /* vertically center avatar and text */
  gap: 0.75rem;
  text-decoration: none; /* optional: remove underline */
}

.job-posted-by .recruiter-avatar img {
  width: 75px;
  height: 75px;
  border-radius: 100%;
  object-fit: cover;
  display: block; /* ensures image doesn’t behave unexpectedly */
}

.job-posted-by .recruiter-info {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  font-family: "Mulish Bold", Sans-serif;
  font-weight: 600;
}

.job-posted-by .recruiter-label {
  font-size: 14px;
  color: #626262;
  margin: 0;
  line-height: 1.5;
}

.job-posted-by .recruiter-name {
  font-size: 24px;
  font-weight: 600;
  color: #223068;
  margin: 0;
  line-height: 1.5;
}

.job-posted-by .job-posted-date {
  margin-left: auto; /* pushes date to the right */
  font-size: 0.85em;
  color: #666;
}

/*───────────────────────────────────────────────────────────────────
  Single Job Listing
────────────────────────────────────────────────────────────────────*/

/* 2) Posted-by line: avatar in a circle + inline text */
/* .job-posted-by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
  margin: 0.5rem 0 1rem;
} */
/* make the avatar a bit larger */
/* .job-posted-by .recruiter-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cjb-border);
}

.job-posted-by .job-posted-date {
  font-size: 0.9em;
  color: var(--cjb-secondary);
}
.job-posted-by .recruiter-info {
  display: flex;
  flex-direction: column;
}
.job-posted-by .recruiter-label {
  font-size: 0.75em;
  color: var(--cjb-primary);
  text-transform: uppercase;
  margin: 0;
}
.job-posted-by .recruiter-name {
  font-size: 1em;
  font-weight: 600;
  margin: 0;
} */

/* 3) Application form: labels on top, inputs full-width + rounded */
/* .application-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--cjb-text-dark);
}
.application-container input[type="text"],
.application-container input[type="email"],
.application-container input[type="file"],
.application-container textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--cjb-border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  font-size: 1rem;
  color: var(--cjb-text-dark);
}
.application-container .application-submit {
  width: 100%;
  padding: 0.75rem;
  background: var(--cjb-accent);
  color: var(--cjb-text-light);
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.application-container .application-submit:hover {
  background: var(--cjb-accent-hover);
} */

/* End of Custom Job Board Styles */

/*---------------------------------------------------
  Job Board: Sidebar Filter Styles (UPDATED)
---------------------------------------------------*/

/* Component-specific styling with BEM-like naming convention */
.job-listing {
  --jl-card: #fff;
  --jl-ink: #0f172a;
  --jl-muted: #5b6475;
  --jl-brand: #1e68ff;
  --jl-brand-700: #1752c6;
  --jl-chip: #eef2ff;
  --jl-chip-ink: #1e40af;
  --jl-border: #e6e8ee;
  --jl-success: #15a34a;

  background: var(--jl-bg);
  color: var(--jl-ink);
  font: 16px/1.6 system-ui, -apple-system, Sego UI, Roboto, Inter, Arial,
    sans-serif;
  margin: 0;
  padding: 24px 0;
}

.job-listing * {
  box-sizing: border-box;
}

.job-listing__container {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 16px;
}

.job-listing__card {
  background: var(--jl-card);
  border: 1px solid #eee; /* lighter, softer border */
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* subtle shadow */
}

.job-listing__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.job-listing__title-container {
  flex: 1;
}

.job-listing__title {
  font-size: 44px;
  line-height: 50px;
  font-weight: 600;
  color: #223068;
  font-family: "Mulish", Sans-serif;
  margin: 0 0 20px 0;
}

.job-listing__posted-date {
  color: #3f3f3f;
  font-weight: 600;
  font-size: 14px;
  font-family: "Mulish Bold", Sans-serif;
  line-height: 1.642857143;
}

.job-listing__action-buttons {
  display: flex;
  align-items: center;
}

.job-listing__action-link {
  font-family: "Mulish", Sans-serif;
  font-weight: 500;
}

.job-listing__action-link--refer {
  color: #fff; /* text white */
  background: #223068; /* optional: filled background for contrast */
  font-family: "Mulish Bold", Sans-serif;
  font-weight: 600;
  padding: 10px 16px; /* balanced padding */
  border: 2px solid #223068; /* full border */
  border-radius: 6px; /* subtle rounded edges */
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  line-height: 1.642857143;
  display: inline-block;
}

/* Hover effect */
.job-listing__action-link--refer:hover {
  text-decoration: none;
  background: transparent; /* hollow button on hover */
  color: #223068; /* text turns to brand color */
}

.job-listing__action-link--apply {
  color: #fff; /* text white */
  background: #2672b9; /* apply button brand color */
  font-family: "Mulish Bold", Sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.642857143;
  text-decoration: none;
  padding: 10px 16px;
  border: 2px solid #2672b9; /* full border */
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  display: inline-block;
}

/* Hover effect */
.job-listing__action-link--apply:hover {
  background: transparent; /* hollow on hover */
  color: #2672b9; /* text becomes border color */
}

.job-listing__meta-slab {
  border-top: 1px solid var(--jl-border);
  border-bottom: 1px solid var(--jl-border);
  padding: 18px 0;
  margin-top: 16px;
}

.job-listing__meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.job-listing__info-group {
  font-family: "Mulish", Sans-serif;
  font-size: 16px;
  line-height: 1.642857143;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px !important;
}

.job-listing__info-label {
  display: block;
  color: #333;
  font-weight: 200;
  font-size: 16px;
  margin-bottom: 0;
}

.job-listing__details-container {
  display: flex;
  justify-content: flex-end;
}

.job-listing__details-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: "Mulish", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.642857143;
  color: #333;
}

.job-listing__detail-item {
  margin: 0;
  padding: 0;
  font-weight: 400;
  color: #333;
}

.job-listing__detail-item:not(:last-child) {
  border-right: 1px solid #dedede;
  padding-right: 24px;
  margin-right: 24px;
  margin-bottom: 0;
}

.job-listing__section {
  padding: 22px 0;
  border-bottom: 1px solid var(--jl-border);
}

.job-listing__section-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jl-muted);
  margin: 0 0 10px 0;
}

.job-listing__paragraph {
  margin: 10px 0;
}

.job-listing__author {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
}

.job-listing__author-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.job-listing__author-image {
  border-radius: 100%;
  overflow: hidden;
  height: 65px;
  width: 65px;
}

.job-listing__author-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.job-listing__author-details {
  display: flex;
  flex-direction: column;
}

.job-listing__author-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--jl-muted);
}

.job-listing__author-name {
  font-weight: 800;
  color: var(--jl-brand);
  text-decoration: none;
}

.job-listing__footer {
  margin-top: 16px;
  border-top: 1px solid #eaeaeb;
  padding-top: 22px;
}

.job-listing__footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  font-family: "Mulish", Sans-serif;
}

.job-listing__footer-heading {
  font-family: "Mulish", Sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #000;
  text-transform: uppercase;
  margin: 0 0 15px 0;
}

.job-listing__footer-link {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-bottom: 15px;
  display: block;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25ms 0.25ms ease-in-out;
}

.job-listing__footer-link:hover {
  text-decoration: underline;
}

.job-listing__footer-info {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  line-height: 2px;
  color: #000;
}

.job-listing__share {
  display: flex;
  gap: 10px;
  align-items: center;
}

.job-listing__share-link {
  width: 36px;
  height: 36px;
  /* border-radius: 50%; */
  /* border: 1px solid var(--jl-border); */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jl-muted);
  text-decoration: none;
}

.job-listing__share-link img {
  width: 36px;
  height: 36px;
  /* border-radius: 50%; */
  /* border: 1px solid var(--jl-border); */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jl-muted);
  text-decoration: none;
}

/* Responsive styles */
@media (max-width: 900px) {
  .job-listing__meta-grid {
    grid-template-columns: 1fr;
  }

  .job-listing__footer-columns {
    grid-template-columns: 1fr;
  }

  .job-listing__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-listing__details-container {
    justify-content: flex-start;
  }

  .job-listing__author {
    flex-direction: column;
    gap: 16px;
  }

  .job-listing__action-buttons {
    align-self: flex-start;
  }

  .job-listing__container {
    max-width: 95%;
  }
}

/* End of Custom Job Board Styles */

/*---------------------------------------------------
  Job Board: Sidebar Filter Styles (UPDATED)
---------------------------------------------------*/

/* 1) Lay out board as two columns */
#job-board {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
#job-board .job-filters {
  flex: 0 0 250px;
}
#job-board .job-main {
  flex: 1;
}

/* 2) Sidebar “Filters” title and each toggle */
#job-board .job-filters h3,
#job-board .job-filters .filter-toggle {
  color: var(--cjb-filter-text);
  background: var(--cjb-filter-bg);
  padding: 0.5rem;
  border-radius: 4px;
}

/*  Sidebar title + reset button inline  */
#job-board .job-filters h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.5rem;
  background: var(--cjb-filter-bg);
  border-radius: 4px;
  color: var(--cjb-filter-text);
  font-size: 1rem;
}

#job-board .job-filters h3 span {
  /* the “Filters” text */
  font-weight: 600;
}

#job-board .job-filters .filter-reset {
  background: transparent;
  border: none;
  color: var(--cjb-primary);
  font-size: 0.9em;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

#job-board .job-filters .filter-reset:hover {
  background: var(--cjb-filter-accent);
  color: var(--cjb-text-light);
}

/* 3) Spacing tweak on the toggles */
#job-board .job-filters .filter-toggle {
  margin: 0.5rem 0;
  font-weight: 600;
  text-align: left;
  width: 100%;
  border: none;
  cursor: pointer;
  position: relative;
}
/* arrow indicator */
#job-board .job-filters .filter-toggle::after {
  content: "▾";
  position: absolute;
  right: 0.5rem;
  color: var(--cjb-filter-accent);
  transition: transform 0.2s ease;
}
/* rotate when open */
#job-board .job-filters .filter-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* 4) Separator between each group */
#job-board .job-filters .filter-group + hr {
  border: 0;
  border-top: 1px solid var(--cjb-filter-border);
  margin: 1rem 0;
}

/* 5) The hidden/shown options list */
#job-board .job-filters .filter-options {
  display: none; /* JS toggles this */
  padding-left: 1rem;
  margin-top: 0.5rem;
}
#job-board .job-filters .filter-options label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cjb-filter-text);
}
#job-board .job-filters .filter-options input[type="checkbox"] {
  margin-right: 0.5rem;
}
#job-board .job-filters .filter-options .count {
  font-size: 0.9em;
  color: var(--cjb-filter-accent);
  margin-left: 0.25em;
}

/* indent child terms */
#job-board .job-filters .filter-options .child-term {
  margin-left: 1.5rem;
  display: block;
  font-size: 0.95em;
}
#job-board .job-filters .filter-options .child-term::before {
  content: "–";
  display: inline-block;
  width: 1rem;
  color: var(--cjb-filter-border);
}

/* 6) Mobile: stack sidebar on top */
@media (max-width: 600px) {
  #job-board {
    flex-direction: column;
  }
  #job-board .job-filters {
    width: 100%;
    margin-bottom: 1.5rem;
  }
}

/*---------------------------------------------------
  Search Bar: full-width, rounded, with vertical spacing
---------------------------------------------------*/
/* ===== Job Board: Search Bar (fixed height) ===== */
#job-board .job-search-bar {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  flex-wrap: wrap;

  /* kill theme’s pill box + padding */
  padding: 0 !important;
  margin: 0 0 1rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  align-items: center; /* center input & button vertically */
  min-height: 0 !important; /* ignore any theme min-height */
}

/* Input */
#job-board .job-search-bar input#job-search {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 1rem; /* tighter */
  line-height: 1.2;
  border: 1px solid var(--cjb-filter-border);
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  height: auto !important; /* ignore theme fixed heights */
}

/* Button */
#job-board .job-search-bar button#job-search-btn {
  flex: 0 0 auto; /* don’t grow */
  width: auto !important; /* override theme 100% rules */
  padding: 0.55rem 1.25rem; /* tighter */
  line-height: 1.2;
  border: none;
  border-radius: 999px;
  background: var(--cjb-filter-accent);
  color: var(--cjb-text-light);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

/* Mobile: stack full-width */
@media (max-width: 640px) {
  #job-board .job-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
  }
  #job-board .job-search-bar input#job-search,
  #job-board .job-search-bar button#job-search-btn {
    width: 100% !important;
  }
}

#job-board .job-search-bar button#job-search-btn:hover {
  background: var(--cjb-primary-hover);
}
/* jobcard display */

.job-card-body {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.job-card-body .job-desc {
  flex: 2;
}

.job-card-body .job-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space between each term */
}

.job-card-body .job-meta p {
  margin: 0;
  font-size: 0.9em;
}

/*───────────────────────────────────────────────────────────────────
  Job List Job Card Styling (Job List Shortcode)
────────────────────────────────────────────────────────────────────*/

.role-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  color: #0f172a;
  text-decoration: none;
  padding: 0;
}

.role-card:hover {
  border-color: #1e68ff;
  box-shadow: 0 4px 12px rgba(30, 104, 255, 0.15);
  cursor: pointer;
}

.card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-indent: -9999px;
  overflow: hidden;
  z-index: 1;
}

.role-card-header {
  padding: 20px;
  border-bottom: 1px solid #dedede;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* .role-card-header-view {
      font-family: "Mulish", Sans-serif;
      display: inline-block;
      margin-bottom: 0;
      padding-right: 15px;
      margin-right: 15px;
      color: #ed1c24;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: color .25ms .25ms ease-in-out;
    } */

.role-card-header-view {
  color: #fff; /* text white */
  background: #2672b9; /* apply button brand color */
  font-family: "Mulish Bold", Sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.642857143;
  text-decoration: none;
  padding: 4px 16px;
  border: 2px solid #2672b9; /* full border */
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  display: inline-block;
  margin-right: 15px;
}

.role-card-header-view:hover {
  background: transparent; /* hollow on hover */
  color: #2672b9; /* text becomes border color */
}

.role-title a {
  color: #223068;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  transition: color 0.3s;
  padding-right: 12px;
  border-right: 1px solid #dedede;
}

.role-title a:hover {
  text-decoration: underline;
}

.role-card-posted {
  padding-left: 12px;
  color: #3f3f3f;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: text-bottom;
}

.role-card-details {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  border: 1px solid #e6e8ee;
  padding: 1rem;
  background: #fff;
}

.role-card-main {
  flex: 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.role-description {
  color: #000;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.role-meta {
  display: flex;
  align-items: center;
  font-size: 16px;
  margin: 0;
  line-height: 1.3;
  color: #3f3f3f;
}

.role-meta .vertical-line {
  margin: 0 0.5rem;
  font-size: 20px;
  color: #5b6475;
}

.role-card-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-start;
}

.role-salary {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #3f3f3f;
}

.role-type {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #3f3f3f;
}

/*───────────────────────────────────────────────────────────────────
  Job Search Hero (Homepage Shortcode)
────────────────────────────────────────────────────────────────────*/
.job-search-hero {
  background: var(--cjb-secondary-light);
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto;
}

.job-search-hero .search-row {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  flex-wrap: wrap; /* wrap on narrow screens */
}

.job-search-hero .search-row input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--cjb-border);
  border-radius: 9999px;
  background: #fff;
  color: var(--cjb-text-dark);
  box-sizing: border-box;
  outline: none;
}

.job-search-hero .search-row button[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: var(--cjb-primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.job-search-hero .search-row button[type="submit"]:hover {
  background: var(--cjb-primary-hover);
}

/* Job type checkboxes */
.job-search-hero .job-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.job-search-hero .job-type-filters label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--cjb-filter-text);
}

/* Use CSS accent-color where supported to tint the checkboxes */
.job-search-hero .job-type-filters input[type="checkbox"] {
  accent-color: var(--cjb-primary);
}

/*───────────────────────────────────────────────────────────────────
  Meet the team Grid and "other" (keep at bottom)
────────────────────────────────────────────────────────────────────*/
.team-grid {
  padding: 40px 0;
  max-width: 80%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}
.team-grid__head {
  text-align: center;
  color: #000;
  margin-bottom: 24px;
}
.team-grid__sub {
  opacity: 0.8;
}
/* .team-grid__wrap { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 50px; padding: 40px 20px;} */
/* Desktop/Laptop: always 3 columns */
.team-grid__wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  padding: 40px 20px;
}

/* Center the last row when there are leftovers (desktop rules) */
@media (min-width: 1016px) {
  /* If there's 1 item in the last row (total % 3 == 1) → put it in the middle column */
  .team-grid__wrap > .team-card:nth-last-child(1):nth-child(3n + 1) {
    grid-column: 2;
  }

  /* If there are 2 items in the last row (total % 3 == 2) → start the first of them in col 2 (the other falls into col 3) */
  .team-grid__wrap > .team-card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 1;
  }
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .team-grid__wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

/* Phone: 1 column */
@media (max-width: 600px) {
  .team-grid__wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px; /* optional: keeps single column nicely narrow */
    margin: 0 auto;
  }
}

.team-card {
  position: relative;
  border: 2px solid #2672b9;
  border-radius: 16px;
  padding: 80px 20px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card__avatar {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #fff;
  overflow: hidden;
}
.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.team-card__name {
  margin: 12px 0 4px;
  font-size: 1.1rem;
  color: #000;
}
.team-card__role {
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.team-card__excerpt {
  color: #000;
  min-height: 3em;
  font-size: 0.9rem;
  line-height: 1.4;
}
.team-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.btn-primary {
  padding: 8px 14px;
  border-radius: 8px;
  background: #2672b9;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: filter 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(0.95);
}
.no-underline {
  text-decoration: none;
}
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e3e3e3;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.btn-icon svg {
  display: block;
}

.team-grid__cta {
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
}
.team-grid__cta h3 {
  margin-bottom: 20px;
  color: #000;
}
.cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-secondary {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #2672b9;
  color: #2672b9;
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}
.btn-secondary:hover {
  background: #f0f7ff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .team-grid__wrap {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 60px 20px;
  }
}
@media (max-width: 768px) {
  .team-grid__wrap {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 50px 15px;
  }
  .team-grid__head h1 {
    font-size: 1.8rem;
  }
  .team-grid__head h2 {
    font-size: 1.1rem;
  }
}
@media (max-width: 600px) {
  .team-grid__wrap {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 60px;
  }
  .team-card {
    padding: 80px 20px 20px;
  }
  .team-grid__head h1 {
    font-size: 1.6rem;
  }
  .team-grid__head h2 {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .team-grid {
    padding: 30px 15px;
  }
  .team-grid__wrap {
    gap: 50px;
  }
  .team-card__avatar {
    width: 90px;
    height: 90px;
    top: -45px;
  }
  .team-card__name {
    font-size: 1.2rem;
  }
  .team-card__role {
    font-size: 0.9rem;
  }
  .team-card__excerpt {
    font-size: 0.9rem;
  }
}

/* ================= Featured Vacancies ================= */
.featured-vacancies .container {
  max-width: 80%;
  margin: 0 auto;
  padding: 32px 20px;
}
.featured-vacancies h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: 0.3px;
  text-align: center;
}

.featured-vacancies .vacancy-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.featured-vacancies .vacancy-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 24px 26px;
  box-shadow: 0 5px 14px rgba(7, 37, 68, 0.08);
  text-align: left;
}
.featured-vacancies .vacancy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.featured-vacancies .vacancy-title {
  color: #2672b9;
  font-weight: 900;
  font-size: clamp(18px, 2vw, 24px);
}
.featured-vacancies .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.featured-vacancies .btn-success {
  background: #3fb08f;
  color: #fff;
}
.featured-vacancies .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(63, 176, 143, 0.35);
}
.featured-vacancies .meta {
  margin-top: 16px;
}
.featured-vacancies .meta .location {
  font-weight: 800;
}
.featured-vacancies .meta .rate {
  font-size: 13px;
  color: #0f2437;
  font-weight: 800;
  margin-top: 2px;
}
.featured-vacancies .desc {
  margin-top: 14px;
  color: #556575;
}
.featured-vacancies .cta-wrap {
  margin-top: 26px;
  text-align: center;
}
.featured-vacancies .btn-outline {
  background: transparent;
  color: #0f2437;
  border: 2px solid #0f2437;
  padding: 12px 20px;
  border-radius: 12px;
}
.featured-vacancies .btn-outline:hover {
  color: #2672b9;
  border-color: #2672b9;
  box-shadow: 0 6px 16px rgba(38, 114, 185, 0.35);
}

/* Blog by CSS */
.blog-posted-by {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}
.blog-posted-by .recruiter-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
}
.blog-posted-by .recruiter-avatar {
  margin-right: 12px;
}
.blog-posted-by .recruiter-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-posted-by .recruiter-info {
  display: flex;
  flex-direction: column;
}
.blog-posted-by .recruiter-label {
  font-size: 0.875rem;
  color: #666;
}
.blog-posted-by .recruiter-name {
  font-weight: 600;
  color: #333;
}
.blog-posted-by .blog-posted-date {
  font-size: 0.875rem;
  color: #666;
  margin-left: auto;
}

/* ================= Blog Section ================= */
.blog-section .container {
  max-width: 80%;
  margin: 0 auto;
  padding: 32px 20px;
}
.blog-section .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 16px 0 22px;
}
.blog-section .pill {
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid #eef7fc;
  background: #eef7fc;
  color: #0f2437;
  font-weight: 700;
  font-size: 14px;
}
.blog-section .pill.is-active {
  background: #2672b9;
  color: #fff;
  border-color: #2672b9;
  box-shadow: 0 6px 16px rgba(38, 114, 185, 0.35);
}
.blog-section .pill.muted {
  border-color: #cecece;
  background: #cecece;
  color: #ffffff;
  font-weight: 600;
}

.blog-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-section .blog-card {
  background: #fff;
  border-radius: 16px;
  border: 2px solid #2672b9;
  box-shadow: 0 5px 14px rgba(7, 37, 68, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
} /* Ensure all cards take full height of their grid cell */
.blog-section .blog-card img {
  display: flex;
  width: 90%;
  height: 200px;
  object-fit: cover;
  margin: 5%;
}
/* Responsive */
@media (min-width: 1300px) {
  .blog-section .blog-card img {
    display: flex;
    width: 90%;
    height: 400px;
    object-fit: cover;
    margin: 5%;
  }
}
.blog-section .blog-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allow body to grow and push actions to bottom */
  gap: 8px;
}
.blog-section .blog-title {
  font-weight: 800;
  min-height: 3.6em; /* Adjust based on your line-height to accommodate 2 lines */
  display: flex;
  align-items: center; /* Vertically center the title text */
}
.blog-section .blog-sub {
  font-size: 12px;
  color: #556575;
  margin-top: -2px;
  flex-grow: 1; /* Take available space */
  overflow: hidden; /* Hide overflow */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis; /* Add ellipsis */
  line-height: 1.4; /* Ensure consistent line height */
  max-height: calc(1.4em * 3); /* Calculate max height based on line height */
  position: relative; /* For potential pseudo-elements */
}
/* Optional: Add fade effect for better visual */
.blog-section .blog-sub:after {
  content: "";
  text-align: right;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 1.4em;
  /* background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1) 50%); */
}
.blog-section .blog-actions {
  margin-top: auto; /* Push button to bottom */
  padding-top: 10px; /* Add some spacing above the button */
}
.blog-section .btn-blue {
  background: #2672b9;
  color: #fff;
  border: 2px solid #2672b9;
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  display: block;
  text-align: center;
}
.blog-section .btn-blue:hover {
  background: #2672b9;
  color: #fff;
  box-shadow: 0 6px 16px rgba(38, 114, 185, 0.35);
  transform: translateY(-1px);
}
.blog-section .pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 24px 0 10px;
}
.blog-section .page {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #cfe2f6;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}
.blog-section .page.arrow {
  font-weight: 900;
}
.blog-section .page.is-current {
  background: #2672b9;
  border-color: #2672b9;
  color: #fff;
  box-shadow: 0 6px 16px rgba(38, 114, 185, 0.35);
}
.blog-section .cta-wrap {
  margin-top: 26px;
  text-align: center;
}
.blog-section .btn-outline {
  background: transparent;
  color: #2672b9;
  border: 2px solid #2672b9;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}
.blog-section .btn-outline:hover {
  color: #0f2437;
  border-color: #0f2437;
  box-shadow: 0 6px 16px rgba(38, 114, 185, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .featured-vacancies .vacancy-grid {
    grid-template-columns: 1fr;
  }
  .blog-section .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .blog-section .blog-grid {
    grid-template-columns: 1fr;
  }
  .featured-vacancies .vacancy-header {
    align-items: flex-start;
  }
}

.article-container {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.7;
  color: #333;
}

/* --- Header Layout --- */
.article-header {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  margin-bottom: 30px;
}
.header-left {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.header-left img {
  width: 80%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}
.header-right {
  flex: 1;
}
.header-right h1 {
  font-size: 64px;
  margin: 0 0 10px;
  color: #0f2437;
}
.date {
  font-size: 16px;
  color: #556575;
  margin-bottom: 12px;
}
.date a {
  text-decoration: none;
  color: #2672b9;
}
.date a:hover {
  text-decoration: underline;
}
.excerpt {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

/* --- Body + Sidebar Layout --- */
.article-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.article-body {
  flex: 2;
  font-size: 18px;
}
.article-body p {
  margin-bottom: 20px;
}
.sidebar {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.share-block,
.latest-block {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
}
.share-block h3,
.latest-block h3 {
  font-size: 20px;
  margin: 0 0 15px;
  color: #2672b9;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}
.share-icons a {
  display: inline-block;
  margin-right: 12px;
}
.share-icons img {
  width: 28px;
  height: 28px;
}
.latest-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.latest-block li {
  margin-bottom: 12px;
}
.latest-block a {
  text-decoration: none;
  color: #0f2437;
}
.latest-block a:hover {
  color: #2672b9;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .header-left img {
    width: 100%;
  }

  .article-header {
    flex-direction: column;
  }
  .article-layout {
    flex-direction: column;
  }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ================= Testimonials Section (FIXED) ================= */
/* Wrapper */
.testi-wrap {
  box-sizing: border-box;
  max-width: var(--testi-max, 1200px);
  width: 100%;
  margin: 0 auto;
  --testi-radius: 14px;
  --testi-gap: 20px; /* desktop grid gap */
  --mobile-gutter: 16px; /* left/right padding around the scroller */
  --mobile-gap: 16px; /* space between slides */
}

/* Center inner containers */
.testi-wrap > .testi-parent,
.testi-wrap > .phone-testi-parent {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Hide dots on desktop */
@media (min-width: 769px) {
  .testi-wrap .testi-dots {
    display: none;
  }
}

/* ================= Desktop Grid & Shared Styles ================= */

/* GRID LAYOUT (desktop) 
   — was 6 columns with nothing occupying column 6.
   — reduce to 5 so the right side is used fully.
*/
.testi-parent {
  max-width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* FIXED */
  grid-template-rows: repeat(5, minmax(0, auto));
  grid-column-gap: var(--testi-gap);
  grid-row-gap: var(--testi-gap);
  justify-content: center;
  align-content: center;
}

/* Cards */
.testi-div1 {
  grid-area: 1 / 1 / 4 / 2;
  background: #dbedf9;
  padding: 20px;
  border-radius: var(--testi-radius);
}
.testi-div2 {
  grid-area: 4 / 1 / 5 / 2;
  background: #fedca5;
  padding: 20px;
  border-radius: var(--testi-radius);
  text-align: center;
}
.testi-div5 {
  grid-area: 3 / 4 / 5 / 6; /* ends at grid line 6 which exists on a 5-col grid */
  background: #27ade4;
  padding: 20px;
  border-radius: var(--testi-radius);
  text-align: center;
  color: #fff;
}

/* Div3 (image left full height, text right) */
.testi-div3 {
  grid-area: 1 / 2 / 3 / 6; /* spans across to the right edge */
  background: #2873b9;
  color: #fff;
  display: flex;
  align-items: stretch;
  border-radius: var(--testi-radius);
  overflow: hidden;
}
.testi-div3 img {
  width: auto;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.testi-div3 .text-side {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Div4 (text left, avatar right) */
.testi-div4 {
  grid-area: 3 / 2 / 5 / 4;
  background: #38b098;
  padding: 20px;
  border-radius: var(--testi-radius);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-div4 .profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.testi-div4 .profile-text {
  text-align: left;
}
.testi-div4 .round-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

/* Shared text */
.testimonial {
  font-size: 1rem;
  margin: 15px 0;
  line-height: 1.4;
}
.testi-div1 .stars,
.testi-div2 .stars {
  font-size: 2.5rem;
  color: #22374e;
  margin: 10px 0;
}
.testi-div3 .stars {
  font-size: 2.5rem;
  color: #fff;
  margin: 10px 0;
}
.author {
  font-weight: bold;
}
.role {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Images */
.testi-div1 img {
  width: 400px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}
.testi-div3 img {
  width: 380px;
}
.testi-div4 img {
  width: 60px;
  height: 60px;
}
.testi-div5 img {
  margin-top: 10%;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.text-side {
  padding: 20px;
}
.round-img {
  border-radius: 50% !important;
}
.top-center {
  display: block;
  margin: 0 auto 15px auto;
}

/* ====== Mobile (≤ 768px): true one-per-view “card” slider (no images) ====== */
@media (max-width: 768px) {
  .testi-wrap > .phone-testi-parent {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Use flex scroller + snap */
  .testi-wrap .phone-testi-parent {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    gap: var(--mobile-gap);
    padding: 0 var(--mobile-gutter);
    margin: 0;
    scroll-padding-inline: calc(var(--mobile-gutter) + (var(--mobile-gap) / 2));
  }
  .testi-wrap .phone-testi-parent {
    overscroll-behavior-x: contain; /* optional but helps */
  }
  .testi-wrap .phone-testi-parent > div {
    /* One full “card” per viewport with rounded corners and spacing */
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: var(--testi-radius);
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    margin: 0;
    scroll-margin-inline: calc(var(--mobile-gap) / 2);
  }

  .testi-wrap .phone-testi-parent img {
    display: none !important;
  } /* no images on mobile */

  .testi-wrap .testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }
  .testi-wrap .testi-dots .dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    padding: 0;
    line-height: 0;
    cursor: pointer;
  }
  .testi-wrap .testi-dots .dot.is-active {
    background: rgba(0, 0, 0, 0.65);
    transform: scale(1.25);
  }

  /* Mobile card colors (match desktop theme) */
  .testi-wrap .phone-testi-div1 {
    background: #dbedf9 !important;
    color: inherit;
  }
  .testi-wrap .phone-testi-div2 {
    background: #fedca5 !important;
    color: inherit;
  }
  .testi-wrap .phone-testi-div3 {
    background: #2873b9 !important;
    color: #fff !important;
  }
  .testi-wrap .phone-testi-div4 {
    background: #38b098 !important;
    color: #fff;
  }
  .testi-wrap .phone-testi-div5 {
    background: #27ade4 !important;
    color: #fff;
  }

  /* If you ever show the desktop grid on small screens, stack it nicely */
  .testi-parent {
    grid-template-columns: 1fr;
  }
  .testi-div3 {
    flex-direction: column;
  }
  .testi-div3 img {
    width: 100%;
    height: 200px;
  }
  .testi-div4 .profile {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Toggle which layout shows */
.phone-testi-parent {
  display: none;
}
.testi-parent {
  display: grid;
}
@media (max-width: 768px) {
  .testi-parent {
    display: none;
  } /* hide desktop grid on phones */
  .phone-testi-parent {
    display: flex;
  } /* shown as flex above */
}

/*───────────────────────────────────────────────────────────────────
  Mobile Override (keep at bottom)
────────────────────────────────────────────────────────────────────*/
@media only screen and (max-width: 480px) {
  .job-search-hero .search-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .job-search-hero .search-row input[type="text"],
  .job-search-hero .search-row button[type="submit"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .job-search-hero .search-row button[type="submit"] {
    margin-top: 0.5rem !important;
  }
}
