/* =============================================================================
   Click Jobs – Job Seekers Directory
   ============================================================================= */

/* ---- Custom Properties ---- */
:root {
  --cjgw-primary: #336699;
  --cjgw-primary-dark: #1a4a7a;
  --cjgw-primary-mid: #2a5a8a;
  --cjgw-accent: #4a8cc4;
  --cjgw-black: #000000;
  --cjgw-dark: #272727;
  --cjgw-gray: #5f6368;
  --cjgw-gray-light: #e8ebef;
  --cjgw-bg: #f3f6fa;
  --cjgw-card-bg: #ffffff;
  --cjgw-border: #dde2e8;
  --cjgw-gradient: linear-gradient(135deg, #336699 0%, #1a4a7a 100%);
  --cjgw-gradient-soft: linear-gradient(
    135deg,
    #4a8cc4 0%,
    #336699 60%,
    #1a4a7a 100%
  );
  --cjgw-shadow: 0 2px 14px rgba(51, 102, 153, 0.11);
  --cjgw-shadow-hover: 0 8px 28px rgba(51, 102, 153, 0.22);
  --cjgw-radius: 14px;
  --cjgw-radius-sm: 8px;
  --cjgw-font-text: 'Ella Sans', Arial, sans-serif;
  --cjgw-font-title: 'Futurism', 'Ella Sans', Arial, sans-serif;
}

/* ---- Boot / FOUC prevention ---- */
@keyframes cjgw-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ---- Step 1: filter section ---- */
.cjgw-seekers__filters {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.cjgw-seekers.filters-ready .cjgw-seekers__filters {
  opacity: 1;
}

/* ---- Skeleton shimmer while filters load ---- */
.cjgw-seekers.is-booting .cjgw-filters__bar select,
.cjgw-seekers.is-booting .cjgw-filters__bar input,
.cjgw-seekers.is-booting .cjgw-filters__bar .select2-container {
  visibility: hidden;
}
.cjgw-seekers.is-booting .cjgw-filters__bar {
  min-height: 56px;
  position: relative;
}
.cjgw-seekers.is-booting .cjgw-filters__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--cjgw-radius-sm);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.22) 40%,
    rgba(255, 255, 255, 0.08) 100%
  );
  background-size: 200% 100%;
  animation: cjgw-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Step 2: cards section ---- */
.cjgw-seekers__content {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.cjgw-seekers.cards-ready .cjgw-seekers__content {
  opacity: 1;
}

/* Skeleton cards while fetching ---- */
.cjgw-seekers.is-booting .cjgw-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cjgw-seekers.is-booting .cjgw-cards-grid::before,
.cjgw-seekers.is-booting .cjgw-cards-grid::after,
.cjgw-seekers.is-booting .cjgw-cards-grid .cjgw-skeleton-card {
  display: block;
  height: 260px;
  border-radius: var(--cjgw-radius);
  background: linear-gradient(90deg, #e8ebef 0%, #f3f6fa 40%, #e8ebef 100%);
  background-size: 200% 100%;
  animation: cjgw-shimmer 1.4s ease-in-out infinite;
}
.cjgw-seekers.is-booting .cjgw-cards-grid::before {
  content: '';
}
.cjgw-seekers.is-booting .cjgw-cards-grid::after {
  content: '';
}
.cjgw-seekers.is-booting .cjgw-seekers__results-title {
  visibility: hidden;
}

/* ---- Reset scope ---- */
.cjgw-seekers *,
.cjgw-seekers *::before,
.cjgw-seekers *::after {
  box-sizing: border-box;
}

.cjgw-seekers {
  direction: rtl;
  font-family: var(--cjgw-font-text);
  color: var(--cjgw-dark);
  background: var(--cjgw-bg);
  min-height: 60vh;
}

/* ---- Inner content wrapper ---- */
.cjgw-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Screen-reader only (WCAG 2.1) ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   FILTER BAR
   ============================================================================= */

.cjgw-seekers__filters {
  background: var(--cjgw-gradient);
  padding: 28px 32px 20px;
  position: relative;
  z-index: 9999;
}

.cjgw-seekers__heading-wrap {
  margin-bottom: 18px;
}

.cjgw-seekers__title {
  margin: 0;
  color: #ffffff !important;
  font-family: var(--cjgw-font-title);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.15;
}

.cjgw-seekers__breadcrumbs {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.cjgw-seekers__breadcrumbs a,
.cjgw-seekers__breadcrumbs span {
  color: inherit;
  text-decoration: none;
}

.cjgw-seekers__breadcrumbs a:hover {
  text-decoration: underline;
}

.cjgw-seekers__breadcrumb-sep {
  opacity: 0.7;
}

.cjgw-filters__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cjgw-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cjgw-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 0 0 calc(25% - 8px);
  height: 70px;
}

.cjgw-filter-wrap .sr-only {
  position: absolute;
}

.cjgw-filter-wrap .select2-container,
.cjgw-filter-wrap .cjgw-search {
  width: 100% !important;
}

/* Select base */
.cjgw-filter {
  appearance: auto;
  background: #fff;
  border: none;
  border-radius: var(--cjgw-radius-sm);
  padding: 0 36px 0 14px;
  min-height: 100%;
  min-width: 0;
  flex: 0 0 calc(25% - 8px);
  font-family: var(--cjgw-font-text);
  font-size: 15px;
  color: var(--cjgw-gray);
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s;
}

.cjgw-filter:focus {
  box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.3);
}

.cjgw-seekers select.cjgw-filter.select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cjgw-seekers .select2-container {
  display: inline-flex;
  flex-direction: column;
}

.cjgw-seekers .select2-container .selection {
  display: block;
}

.cjgw-seekers .select2-container .cjgw-select2-selection,
.cjgw-seekers .select2-container .select2-selection {
  height: 70px;
  width: 100%;
  border: none;
  border-radius: var(--cjgw-radius-sm);
  background: #fff;
  box-shadow: none;
  padding: 5px 8px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.cjgw-seekers .select2-container .cjgw-filter-chevron {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cjgw-primary);
  pointer-events: none;
}

.cjgw-seekers .select2-container .select2-selection__arrow {
  display: none;
}

.cjgw-seekers .select2-container .select2-selection__rendered {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: right;
  color: var(--cjgw-dark);
  font-family: var(--cjgw-font-text);
  font-size: 15px;
  line-height: 1.4;
}

.cjgw-seekers .select2-container .select2-selection__rendered:empty {
  display: none !important;
}

.cjgw-seekers .select2-container .select2-selection__placeholder {
  color: var(--cjgw-gray);
}

.cjgw-seekers .select2-container.has-selection .select2-selection__placeholder,
.cjgw-seekers
  .select2-container.has-selection
  .select2-selection__rendered
  .cjgw-select2-item.is-placeholder {
  display: none;
}

.cjgw-seekers .select2-container button.select2-selection__clear {
  order: 10;
  margin-right: auto;
  color: var(--cjgw-gray);
  font-size: 16px;
  border: 0;
  background: transparent;
  padding: 0 4px;
  cursor: pointer;
}

.cjgw-seekers .select2-selection__choice__remove iconify-icon,
.cjgw-seekers .select2-selection__clear iconify-icon {
  display: block;
}

.cjgw-seekers .select2-container .select2-search--inline {
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.cjgw-seekers .select2-container .select2-search--inline.cjgw-search-collapsed {
  display: none !important;
}

.cjgw-seekers .select2-container .select2-search__field {
  margin: 0;
  display: block;
  width: 100% !important;
  min-width: 70px;
  min-height: 60px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--cjgw-font-text);
  font-size: 16px;
  color: var(--cjgw-dark);
}

.cjgw-seekers
  .select2-container.has-selection
  .select2-selection--multiple
  .select2-search--inline {
  display: none;
}

.cjgw-seekers
  .select2-container.has-selection.select2-container--open
  .select2-selection--multiple
  .select2-search--inline {
  display: none;
}

.cjgw-seekers
  .select2-container.has-selection.select2-container--open
  .select2-selection--multiple
  .select2-selection__rendered {
  order: 1;
}

.cjgw-seekers
  .select2-container.has-selection.select2-container--open
  .select2-selection--multiple
  .select2-search__field {
  min-height: 36px;
  font-size: 14px;
}

.cjgw-seekers
  .select2-dropdown
  .select2-search--inline.cjgw-search-in-dropdown {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid var(--cjgw-gray-light);
  background: #f7f9fc;
}

.cjgw-seekers
  .select2-dropdown
  .select2-search--inline.cjgw-search-in-dropdown
  .select2-search__field {
  width: 100% !important;
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--cjgw-border);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
}

.cjgw-seekers
  .select2-container
  .select2-selection--multiple
  .select2-selection__rendered {
  max-height: 70px;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: flex-start;
  padding-left: 2px;
}

.cjgw-seekers
  .select2-container
  .select2-selection--multiple
  .select2-selection__rendered::-webkit-scrollbar {
  width: 6px;
}

.cjgw-seekers
  .select2-container
  .select2-selection--multiple
  .select2-selection__rendered::-webkit-scrollbar-thumb {
  background: #c5d6e6;
  border-radius: 999px;
}

.cjgw-seekers .select2-container .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef3f9;
  border: 1px solid #d6e3f0;
  color: var(--cjgw-primary-dark);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.cjgw-seekers .select2-container .select2-selection__choice__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  color: var(--cjgw-primary-dark);
  cursor: pointer;
  margin: 0 !important;
  padding: 0;
}

.cjgw-select2-dropdown,
.cjgw-seekers .select2-dropdown {
  border: 1px solid var(--cjgw-border);
  border-radius: 12px;
  overflow-y: auto !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 74, 122, 0.14);
}

.cjgw-select2-dropdown .select2-search--dropdown {
  padding: 8px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--cjgw-gray-light);
}

.cjgw-select2-dropdown .select2-search__field {
  width: 100%;
  height: 40px;
  border: 1px solid var(--cjgw-border);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  font-family: var(--cjgw-font-text);
  font-size: 13px;
  color: var(--cjgw-dark);
}

.cjgw-select2-dropdown .select2-results__options {
  max-height: 320px;
  padding: 6px;
  background: #ffffff;
}

.cjgw-select2-dropdown .select2-results__group {
  color: var(--cjgw-primary-dark);
  font-weight: 500;
  padding: 8px 10px 6px;
  font-size: 11px;
  text-align: right;
}

.cjgw-select2-dropdown .select2-results__option {
  border-radius: 8px;
  font-family: var(--cjgw-font-text);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--cjgw-dark);
  text-align: right;
}

.cjgw-select2-dropdown
  .select2-results__option--highlighted.select2-results__option--selectable,
.cjgw-select2-dropdown .cjgw-select2-item__icon {
  background: var(--cjgw-primary-mid);
  color: #fff;
}
.cjgw-select2-dropdown
  .select2-results__option--highlighted.select2-results__option--selectable
  span {
  color: #fff;
}
.cjgw-select2-dropdown .select2-results__option--selected {
  background: #dceaf6;
  color: var(--cjgw-primary-dark);
  font-weight: 500;
}

.cjgw-select2-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.cjgw-select2-item__icon {
  color: var(--cjgw-primary);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.cjgw-select2-item__label {
  display: inline-block;
  padding-right: 2px;
}

.cjgw-select2-item.is-placeholder .cjgw-select2-item__label {
  color: var(--cjgw-gray);
}

.cjgw-select2-item.cjgw-fallback-placeholder {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

/* Native sort filter icon */
.cjgw-filter[data-filter='sort'] {
  padding-right: 42px;
}

/* Search input */
.cjgw-search {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: none;
  border-radius: var(--cjgw-radius-sm) !important;
  padding: 0.5rem 2rem !important;
  min-height: 70px;
  flex: 0 0 calc(25% - 8px);
  min-width: 0;
  font-family: var(--cjgw-font-text);
  font-size: 14px;
  color: var(--cjgw-dark);
  outline: none;
  transition: box-shadow 0.2s;
}

.cjgw-filter-search-wrap {
  position: relative;
  width: 100%;
}

.cjgw-filter-search-wrap .cjgw-search {
  width: 100%;
  padding-right: 42px !important;
}

.cjgw-filter-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cjgw-primary);
  pointer-events: none;
}

.cjgw-search::placeholder {
  color: var(--cjgw-gray);
}

.cjgw-search:focus {
  box-shadow: 0 0 0 3px rgba(51, 102, 153, 0.3);
}

/* Attribution line */
.cjgw-filters__attribution {
  text-align: left;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

/* Mobile toggle */
.cjgw-filters__mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--cjgw-radius-sm);
  padding: 10px 24px;
  font-family: var(--cjgw-font-text);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.cjgw-filters__mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* =============================================================================
   MOBILE OVERLAY
   ============================================================================= */

.cjgw-filters__overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: flex-end;
}

.cjgw-filters__overlay.is-hidden {
  display: none;
}

.cjgw-filters__panel {
  background: var(--cjgw-card-bg);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cjgw-filters__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--cjgw-card-bg);
  padding: 8px 0;
}

.cjgw-filters__panel-title {
  margin: 0;
  font-family: var(--cjgw-font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--cjgw-dark);
}

.cjgw-filters__panel-close {
  background: var(--cjgw-gray-light);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cjgw-gray);
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s;
}

.cjgw-seekers .cjgw-filters__panel-close,
.cjgw-seekers .cjgw-filters__panel-close:hover,
.cjgw-seekers .cjgw-filters__panel-close:focus {
  background: var(--cjgw-gray-light);
  color: var(--cjgw-primary-dark);
}

.cjgw-filters__panel-close:focus-visible {
  outline: 2px solid var(--cjgw-primary);
  outline-offset: 2px;
}

/* Filters inside overlay panel - full width */
.cjgw-filters__panel .cjgw-filter,
.cjgw-filters__panel .cjgw-search {
  width: 100%;
  min-width: 0;
}

.cjgw-filters__panel .select2-container .select2-selection,
.cjgw-filters__panel .cjgw-search {
  height: 54px;
  min-height: 54px;
  border: 1px solid var(--cjgw-border);
  border-radius: 8px;
}

.cjgw-filters__panel .select2-container--focus .select2-selection,
.cjgw-filters__panel .cjgw-search:focus-visible {
  outline: 2px solid var(--cjgw-primary);
  outline-offset: 1px;
}

.cjgw-filters__panel-apply {
  margin-top: 8px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--cjgw-gradient);
  border: none;
  border-radius: var(--cjgw-radius-sm);
  height: 48px;
  color: #fff;
  font-family: var(--cjgw-font-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cjgw-filters__panel-apply:hover {
  opacity: 0.88;
}

.cjgw-views-popup {
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 50, 0.42);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cjgw-views-popup__box {
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cfe2f3;
  border-radius: 16px;
  box-shadow: 0 20px 38px rgba(20, 58, 96, 0.2);
  padding: 20px;
  text-align: center;
}

.cjgw-views-popup__box p {
  margin: 0 0 14px;
  color: #163e65;
  font-family: var(--cjgw-font-title);
  font-size: 20px;
  line-height: 1.45;
}

.cjgw-views-popup__close {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: var(--cjgw-font-text);
  font-size: 15px;
  font-weight: 700;
  background: var(--cjgw-gradient);
  color: #fff;
  cursor: pointer;
}

/* =============================================================================
   CONTENT / GRID
   ============================================================================= */

.cjgw-seekers__content {
  padding: 32px;
}

.cjgw-seekers__results-title {
  margin: 0 0 16px;
  color: var(--cjgw-primary-dark);
  font-family: var(--cjgw-font-title);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.cjgw-seekers__stats {
  text-align: right;
  font-size: 14px;
  color: var(--cjgw-gray);
  margin: 0 0 20px;
}

.cjgw-seekers__stats strong {
  color: var(--cjgw-primary);
  font-weight: 700;
}

.cjgw-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cjgw-cards-loader,
.cjgw-cards-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 0;
  color: var(--cjgw-gray);
  font-size: 16px;
}

/* Infinite scroll sentinel */
.cjgw-infinite-sentinel {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.cjgw-infinite-sentinel.is-loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--cjgw-border);
  border-top-color: var(--cjgw-primary);
  border-radius: 50%;
  animation: cjgw-spin 0.8s linear infinite;
}

.cjgw-cards-loader iconify-icon {
  display: block;
  margin: 0 auto 16px;
  color: var(--cjgw-primary);
  animation: cjgw-spin 1s linear infinite;
}

@keyframes cjgw-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================================================================
   CARD
   ============================================================================= */

.cjgw-card {
  background: var(--cjgw-card-bg);
  border-radius: var(--cjgw-radius);
  box-shadow: var(--cjgw-shadow);
  border: 1px solid var(--cjgw-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    box-shadow 0.22s,
    transform 0.22s;
}

.cjgw-card:hover {
  box-shadow: var(--cjgw-shadow-hover);
  transform: translateY(-3px);
}

/* Card header */
.cjgw-card {
  position: relative;
}

.cjgw-card__header {
  position: relative;
  padding: 38px 18px 14px;
  min-height: 92px;
  border-bottom: 1px solid var(--cjgw-gray-light);
}

.cjgw-card__header-actions {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 6;
  display: inline-flex;
  direction: ltr;
  align-items: flex-start;
  gap: 6px;
}

.cjgw-card__badge {
  position: absolute;
  top: 0;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cjgw-gradient);
  color: #fff;
  font-family: var(--cjgw-font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px 7px;
  border-radius: 0 0 var(--cjgw-radius-sm) var(--cjgw-radius-sm);
}

.cjgw-card__subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cjgw-card__subjects-wrap {
  position: relative;
  max-height: 36px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.cjgw-card__subjects-wrap.is-expanded {
  max-height: 300px;
  overflow-y: auto;
}

.cjgw-card__subjects-wrap.is-expanded ~ .cjgw-card__subjects-toggle {
  position: static;
}

.cjgw-card__subjects-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90%);
  pointer-events: none;
  transition: opacity 0.2s;
}

.cjgw-card__subjects-wrap.is-expanded .cjgw-card__subjects-fade {
  opacity: 0;
}

.cjgw-card__subjects-toggle {
  display: none;
  position: absolute;
  left: 18px;
  top: 32px;
  z-index: 2;
  background: #fff;
  border: none;
  padding: 4px 10px 0;
  font-family: var(--cjgw-font-text);
  font-size: 11px;
  color: var(--cjgw-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  direction: rtl;
  box-shadow: 0px 22px 0 10px rgba(255, 255, 255, 0.96);
  min-height: 40px;
}

.cjgw-card__subjects-toggle.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cjgw-card__subjects-toggle:hover,
.cjgw-card__subjects-toggle:focus-visible {
  background: white;
  color: var(--cjgw-primary-dark);
  outline: 2px solid var(--cjgw-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.cjgw-card__subjects-toggle:focus:not(:focus-visible) {
  outline: none;
  background: white;
  padding: 0;
  margin-top: 4px;
  color: black;
  min-height: 20px;
}

.cjgw-card__tag {
  border: 1.5px solid var(--cjgw-primary);
  color: var(--cjgw-primary);
  border-radius: 20px;
  padding: 3px 13px;
  font-size: 12px;
  font-weight: 500;
}

/* Divider (merged into .cjgw-card__header above) */

/* Hero row: name (right) + experience (left) */
.cjgw-card__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 12px;
  gap: 12px;
}

.cjgw-card__name {
  font-family: var(--cjgw-font-title);
  font-size: 34px;
  font-weight: 700;
  color: var(--cjgw-dark);
  line-height: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cjgw-card__exp-box {
  background: linear-gradient(145deg, #eef3f9, #dde5f0);
  border-radius: var(--cjgw-radius-sm);
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
  min-width: 105px;
}

.cjgw-card__exp-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--cjgw-dark);
  line-height: 1.3;
}

/* Details grid */
.cjgw-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--cjgw-gray-light);
  border-bottom: 1px solid var(--cjgw-gray-light);
}

.cjgw-card__detail {
  padding: 9px 16px;
  border-left: 1px solid var(--cjgw-gray-light);
  background: #f8fafc;
}

.cjgw-card__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cjgw-primary);
  margin-left: 0;
  vertical-align: middle;
}

.cjgw-card__detail-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cjgw-card__detail:nth-child(odd) {
  border-left: 1px solid var(--cjgw-gray-light);
}

.cjgw-card__detail:nth-child(even) {
  border-left: none;
}

.cjgw-card__detail:nth-last-child(-n + 2) {
  border-bottom: none;
}

.cjgw-card__detail-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--cjgw-gray);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline;
  margin-bottom: 0;
}

.cjgw-site-notice {
  --cjgw-notice-duration: 8000ms;
  --cjgw-notice-bar-from: #4a8cc4;
  --cjgw-notice-bar-to: #1a4a7a;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  min-width: 300px;
  max-width: min(92vw, 560px);
  background: #ffffff;
  color: #1e2a36;
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(9, 30, 50, 0.18);
  overflow: hidden;
  z-index: 999999;
  animation: cjgwNoticeIn 0.24s ease-out;
}

.cjgw-site-notice--error {
  background: #fff5f5;
  color: #7f1d1d;
  border-color: #fca5a5;
  --cjgw-notice-bar-from: #ef4444;
  --cjgw-notice-bar-to: #b91c1c;
}

.cjgw-site-notice--warning {
  background: #fffbeb;
  color: #78350f;
  border-color: #fcd34d;
  --cjgw-notice-bar-from: #f59e0b;
  --cjgw-notice-bar-to: #b45309;
}

.cjgw-site-notice.is-hiding {
  animation: cjgwNoticeOut 0.24s ease-in forwards;
}

.cjgw-site-notice__bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--cjgw-notice-bar-from) 0%,
    var(--cjgw-notice-bar-to) 100%
  );
  transform-origin: right center;
  animation: cjgwNoticeProgress var(--cjgw-notice-duration) linear forwards;
}

.cjgw-site-notice__close {
  position: absolute;
  top: 8px;
  left: 10px;
  border: 0;
  background: transparent;
  color: #6f7b86;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.cjgw-site-notice__message {
  padding: 13px 36px 14px 44px;
  font-family: var(--cjgw-font-text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

@keyframes cjgwNoticeProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes cjgwNoticeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes cjgwNoticeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
}

.cjgw-card__detail-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--cjgw-dark);
  display: block;
  line-height: 1.35;
}

/* About section */
.cjgw-card__about {
  padding: 13px 18px;
  flex: 1;
}

.cjgw-card__about-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cjgw-gray);
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cjgw-card__about-text {
  font-size: 13px;
  color: var(--cjgw-dark);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA footer */
.cjgw-card__footer {
  margin-top: auto;
}

.cjgw-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cjgw-gradient);
  color: #fff !important;
  font-family: var(--cjgw-font-title);
  font-size: 14px;
  font-weight: 700;
  padding: 15px 20px;
  text-decoration: none !important;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.3px;
}

.cjgw-card__cta:hover {
  opacity: 0.88;
}

.cjgw-card__cta.is-loading {
  pointer-events: none;
  opacity: 0.96;
}

.cjgw-card__cta-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cjgw-spin 0.75s linear infinite;
}

/* =============================================================================
   SINGLE PROFILE SHORTCODE
   ============================================================================= */

.cjgw-profile-view {
  max-width: 980px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid #d9e5f1;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(28, 69, 110, 0.08);
  padding: 20px;
  font-family: var(--cjgw-font-text) !important;
}

.cjgw-profile-view * {
  font-family: var(--cjgw-font-text) !important;
}

.cjgw-profile-view__head {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 14px;
  align-items: start;
  margin: 0 0 14px;
}

.cjgw-breadcrumb {
  margin: 4px 0 8px;
}

.cjgw-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: #6b8caa;
}

.cjgw-breadcrumb li + li::before {
  content: '/';
  margin-left: 4px;
  color: #aac4db;
}

.cjgw-breadcrumb a {
  color: #2f6fa8;
  text-decoration: none;
}

.cjgw-breadcrumb a:hover {
  text-decoration: underline;
}

.cjgw-profile-view_head_right_column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cjgw-profile-view_head_left_column {
  min-width: 0;
}

.cjgw-profile-view_head_left_column h1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--cjgw-font-title) !important;
  color: #224f7b;
  font-size: 34px;
}

.cjgw-profile-view_head_left_column h1 span {
  font-family: var(--cjgw-font-title) !important;
}

.cjgw-profile-view_head_left_column p {
  margin: 6px 0 14px;
  color: #6884a0;
  font-size: 14px;
}

.cjgw-profile-view__subjects {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.cjgw-profile-view__subject-group {
  border: 1px solid #d9e5f1;
  border-radius: 10px;
  background: #f8fbff;
  padding: 4px 12px;
  overflow: hidden;
  max-height: 220px;
  opacity: 1;
  transition:
    max-height 1s ease,
    opacity 1s ease,
    margin 1s ease,
    padding 1s ease,
    border-width 1s ease;
  display: block;
}

.cjgw-profile-view__subject-group.is-hidden-group {
  max-height: 0;
  opacity: 0;
  margin: 0;
  display: none;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.cjgw-profile-view__subjects.is-expanded
  .cjgw-profile-view__subject-group.is-hidden-group {
  display: block;
  max-height: 220px;
  opacity: 1;
  padding-top: 4px;
  padding-bottom: 4px;
  border-width: 1px;
}

.cjgw-profile-view__subject-title {
  margin: 0;
  font-size: 13px;
  color: #224f7b;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.cjgw-profile-view__subject-title strong {
  font-weight: 800;
}

.cjgw-profile-view__subject-inline {
  display: inline;
  margin-inline-start: 4px;
  color: #1f3142;
  font-weight: 400;
}

.cjgw-profile-view__subject-sep {
  display: inline;
  color: #5f7a93;
}

.cjgw-profile-view__subject-item {
  display: inline;
  color: #1f3142;
  font-size: 12px;
  line-height: 1.45;
  opacity: 1;
  transition: opacity 1s ease;
}

.cjgw-profile-view__subject-item.is-hidden,
.cjgw-profile-view__subject-item.is-hidden + .cjgw-profile-view__subject-sep {
  display: none;
  opacity: 0;
}

.cjgw-profile-view__subjects.is-expanded
  .cjgw-profile-view__subject-item.is-hidden,
.cjgw-profile-view__subjects.is-expanded
  .cjgw-profile-view__subject-item.is-hidden
  + .cjgw-profile-view__subject-sep {
  display: inline;
  opacity: 1;
}

.cjgw-profile-view__subjects-toggle {
  align-self: flex-start;
  border: 1px solid #9dc1e0;
  background: #eef6fd;
  color: #224f7b;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.cjgw-profile-view__subjects-toggle:hover {
  background: #e1f0fb;
  border-color: #6ea2cf;
}

.cjgw-profile-view__subjects-empty {
  margin: 0;
  color: #607f9b;
  font-size: 14px;
}

.cjgw-profile-view__notice,
.cjgw-profile-view__error {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  border: 1px solid #f3ccd2;
  background: #fff5f6;
  color: #b54653;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

.cjgw-profile-view__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cjgw-profile-view__row {
  border: 1px solid #d9e5f1;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fbff;
}

.cjgw-profile-view__row h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: #2b5d89;
  font-size: 13px;
}

.cjgw-profile-view__row p {
  margin: 0;
  color: #1f3142;
  font-size: 14px;
  line-height: 1.45;
}

.cjgw-profile-view__about {
  margin-top: 14px;
  border-top: 1px solid #d9e5f1;
  padding-top: 12px;
}

.cjgw-profile-view__about h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: #2b5d89;
}

.cjgw-profile-view__about p {
  margin: 0;
  color: #2b3b4b;
  line-height: 1.7;
}

.cjgw-profile-view__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cjgw-profile-view_head_right_column .cjgw-profile-view__actions {
  margin-top: 0;
  flex-direction: column;
  flex-wrap: nowrap;
}

.cjgw-profile-view_head_right_column .cjgw-profile-view__btn {
  width: 100%;
}

.cjgw-profile-view__image {
  margin: 0;
  border: 1px solid #d9e5f1;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f7fc;
}

.cjgw-profile-view__image img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  cursor: zoom-in;
}

.cjgw-profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 24, 38, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cjgw-profile-lightbox[hidden] {
  display: none !important;
}

.cjgw-profile-lightbox__img {
  display: block;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.cjgw-profile-lightbox__close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1c3144;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

body.cjgw-lightbox-open {
  overflow: hidden;
}

.cjgw-profile-view__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #336699, #4a8cc4);
  font-weight: 700;
}

.cjgw-profile-view__btn.is-whatsapp {
  background: linear-gradient(135deg, #17916a, #23bf8d);
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.cjgw-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 44px;
}

.cjgw-pagination__btn {
  background: var(--cjgw-card-bg);
  border: 1.5px solid var(--cjgw-border);
  color: var(--cjgw-dark);
  padding: 7px 13px;
  border-radius: var(--cjgw-radius-sm);
  font-family: var(--cjgw-font-text);
  font-size: 14px;
  cursor: pointer;
  min-width: 38px;
  text-align: center;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cjgw-pagination__btn:hover:not(:disabled),
.cjgw-pagination__btn.is-active {
  background: var(--cjgw-gradient);
  border-color: transparent;
  color: #fff;
}

.cjgw-pagination__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.cjgw-pagination__ellipsis {
  color: var(--cjgw-gray);
  padding: 0 4px;
  font-size: 14px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
  .cjgw-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cjgw-filter,
  .cjgw-search {
    flex: 0 0 calc(50% - 6px);
  }

  .cjgw-filters__row .select2-container {
    flex: 0 0 calc(50% - 6px);
  }
}

@media (max-width: 768px) {
  .cjgw-seekers__filters {
    padding: 16px;
  }

  .cjgw-filters__bar {
    display: none;
  }

  .cjgw-filters__mobile-toggle {
    display: flex;
  }

  .cjgw-seekers__title {
    font-size: clamp(28px, 9vw, 42px);
  }

  .cjgw-seekers__breadcrumbs {
    font-size: 12px;
  }

  .cjgw-seekers__content {
    padding: 16px;
  }

  .cjgw-filters__panel .select2-container {
    width: 100% !important;
  }

  .cjgw-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cjgw-card__name {
    font-size: 26px;
  }

  .cjgw-card__subjects-wrap {
    max-height: none;
    overflow: visible;
  }

  .cjgw-card__subjects-wrap.is-expanded {
    max-height: none;
    overflow: visible;
  }

  .cjgw-card__subjects-fade,
  button.cjgw-card__subjects-toggle {
    display: none !important;
  }

  .cjgw-card__details {
    grid-template-columns: 1fr;
  }

  .cjgw-card__detail {
    border-left: none;
    border-bottom: 1px solid var(--cjgw-gray-light);
  }

  .cjgw-card__detail:last-child {
    border-bottom: none;
  }

  .cjgw-profile-view {
    margin: 12px;
    padding: 14px;
  }

  .cjgw-profile-view__head {
    grid-template-columns: 1fr;
  }

  .cjgw-profile-view_head_left_column h1 {
    font-size: 27px;
  }

  .cjgw-profile-view__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cjgw-card__hero {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .cjgw-card__exp-box {
    width: 100%;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .cjgw-card__exp-label {
    margin-bottom: 0;
  }
}

/* =============================================================================
   AI Matcher Popup
   ============================================================================= */

#cjgw-ai-matcher-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999999;
  background: var(--cjgw-gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--cjgw-font-text);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(26, 74, 122, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#cjgw-ai-matcher-trigger .ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#cjgw-ai-matcher-trigger .ai-icon iconify-icon {
  color: currentColor;
}

#cjgw-ai-matcher-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(26, 74, 122, 0.35);
}

#cjgw-ai-matcher-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.6);
  z-index: 1000000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}

#cjgw-ai-matcher-overlay.active {
  display: flex;
}

#cjgw-ai-matcher-popup {
  width: min(860px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  direction: rtl;
  display: flex;
  flex-direction: column;
  font-family: var(--cjgw-font-text);
}

.cjgw-ai-matcher-header {
  background: var(--cjgw-gradient);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cjgw-ai-matcher-header h2 {
  margin: 0;
  font-size: 20px;
  font-family: var(--cjgw-font-title);
  font-weight: 700;
  color: #fff;
}

.cjgw-ai-matcher-header .close-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.cjgw-ai-matcher-remaining {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.9;
}

.cjgw-ai-matcher-body {
  padding: 20px;
  overflow-y: auto;
}

.cjgw-card__bookmark {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  border-radius: 0 0 8px 8px;
  border: 1px solid #336699;
  background: #336699;
  color: #fff;
  box-shadow: 0 10px 22px rgba(51, 102, 153, 0.26);
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.cjgw-card__header-actions .cjgw-card__bookmark {
  position: static;
  top: auto;
  right: auto;
}

.cjgw-card__viewed-indicator {
  position: relative;
  margin-top: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #bfd8ef;
  background: linear-gradient(180deg, #eef7ff 0%, #dfeffd 100%);
  color: #1f568d;
  box-shadow: 0 8px 20px rgba(51, 102, 153, 0.2);
  cursor: default;
}

.cjgw-card__viewed-indicator::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(23, 42, 58, 0.96);
  color: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  font-family: var(--cjgw-font-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.cjgw-card__viewed-indicator::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  right: 8px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(23, 42, 58, 0.96);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.cjgw-card__viewed-indicator:hover::after,
.cjgw-card__viewed-indicator:hover::before,
.cjgw-card__viewed-indicator:focus-visible::after,
.cjgw-card__viewed-indicator:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.cjgw-card__bookmark:hover {
  background: #1f568d;
  border-color: #1f568d;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 86, 141, 0.34);
}

.cjgw-card__bookmark.is-saved {
  background: #163f68;
  border-color: #163f68;
  color: #fff;
}

#cjgw-ai-matcher-input {
  width: 100%;
  min-height: 130px;
  border: 2px solid #dce2ea;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--cjgw-font-text);
  font-size: 15px;
  direction: rtl;
  resize: vertical;
}

#cjgw-ai-matcher-input:focus {
  outline: none;
  border-color: var(--cjgw-primary);
}

.cjgw-ai-matcher-hint {
  margin-top: 8px;
  color: #5f6368;
  font-size: 13px;
}

#cjgw-ai-matcher-search-btn {
  margin-top: 16px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--cjgw-gradient);
  color: #fff;
  font-family: var(--cjgw-font-title);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#cjgw-ai-matcher-search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cjgw-ai-matcher-alert {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.cjgw-ai-matcher-alert.active {
  display: block;
}

.cjgw-ai-matcher-alert.error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.cjgw-ai-matcher-alert.warning {
  background: #fff5e8;
  color: #a35300;
  border: 1px solid #ffd19a;
}

.cjgw-ai-matcher-loading {
  display: none;
  margin-top: 16px;
  text-align: center;
  color: #5f6368;
}

.cjgw-ai-matcher-loading.active {
  display: block;
}

.cjgw-ai-matcher-loading .small {
  font-size: 13px;
  color: #8a8f96;
}

.cjgw-ai-matcher-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #dce2ea;
  border-top-color: var(--cjgw-primary);
  border-radius: 999px;
  margin: 0 auto 12px;
  animation: cjgw-ai-spin 0.8s linear infinite;
}

@keyframes cjgw-ai-spin {
  to {
    transform: rotate(360deg);
  }
}

#cjgw-ai-matcher-results {
  display: none;
  margin-top: 16px;
}

#cjgw-ai-matcher-results.active {
  display: block;
}

#cjgw-ai-matcher-results-content {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.55;
}

#cjgw-ai-matcher-results-content a {
  color: var(--cjgw-primary);
  font-weight: 700;
  text-decoration: none;
}

#cjgw-ai-matcher-results-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  #cjgw-ai-matcher-trigger {
    left: 14px;
    bottom: 14px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .cjgw-ai-matcher-header h2 {
    font-size: 18px;
  }

  .cjgw-ai-matcher-body {
    padding: 14px;
  }
}
