/* ==========================================================================
   QamarHire public website - green / white / gold theme
   Same palette and component language as the RecruitmentCV partner websites
   (recruitmentcv.com public/worker/css/tokens.css). Loaded after theme.min.css
   + custom.css on the qamarhire.com customer pages (layout/user/*), scoped to
   <body class="qh-theme">; nothing here reaches the CRM or partner portal.
   ========================================================================== */

.qh-theme {
  /* Brand */
  --qh-green-900: #064E3B;   /* dark green: footer, headings */
  --qh-green-800: #0B7A50;   /* accent green */
  --qh-green-700: #087443;   /* primary green: buttons, links */
  --qh-green-50: #E8F3EC;    /* light green surface */
  --qh-gold-500: #E2AA22;    /* gold: accent, active nav */
  --qh-gold-600: #C99112;    /* gold hover / text on light */
  --qh-gold-50: #FFF4DA;
  /* Surfaces + text */
  --qh-canvas: #F7FAF8;
  --qh-surface: #FFFFFF;
  --qh-subtle: #F8FAF9;
  --qh-border: #DCE7E0;
  --qh-text: #123B2D;
  --qh-heading: #064E3B;
  --qh-muted: #64756D;
  /* Shape */
  --qh-radius-xl: 22px;
  --qh-radius-md: 12px;
  --qh-shadow-card: 0 1px 2px rgba(6, 78, 59, .04), 0 4px 14px rgba(6, 78, 59, .05);
  --qh-shadow-lift: 0 18px 40px rgba(6, 78, 59, .12);
  --qh-focus: 0 0 0 3px rgba(8, 116, 67, .22);
  --qh-font-display: 'Plus Jakarta Sans', 'Noto Sans', 'Segoe UI', sans-serif;
  --qh-font-body: 'DM Sans', 'Noto Sans', 'Segoe UI', sans-serif;

  /* Bootstrap / Finder variables re-pointed (theme.min.css still had the
     template's orange primary-rgb and a blue "danger"). */
  --bs-primary: #087443;
  --bs-primary-rgb: 8, 116, 67;
  --bs-secondary: #F7FAF8;
  --bs-secondary-rgb: 247, 250, 248;
  --bs-success: #15803D;
  --bs-success-rgb: 21, 128, 61;
  --bs-info: #064E3B;
  --bs-info-rgb: 6, 78, 59;
  --bs-warning: #E2AA22;
  --bs-warning-rgb: 226, 170, 34;
  --bs-danger: #B91C1C;
  --bs-danger-rgb: 185, 28, 28;
  --bs-dark: #064E3B;
  --bs-dark-rgb: 6, 78, 59;
  --bs-body-color: #123B2D;
  --bs-body-color-rgb: 18, 59, 45;
  --bs-body-font-family: var(--qh-font-body);
  --bs-link-color: #087443;
  --bs-link-hover-color: #064E3B;

  background: var(--qh-canvas);
  color: var(--qh-text);
  font-family: var(--qh-font-body);
}

/* ---- Typography --------------------------------------------------------- */
.qh-theme h1, .qh-theme h2, .qh-theme h3, .qh-theme h4, .qh-theme h5, .qh-theme h6,
.qh-theme .h1, .qh-theme .h2, .qh-theme .h3, .qh-theme .h4, .qh-theme .h5, .qh-theme .h6 {
  color: var(--qh-heading);
  font-family: var(--qh-font-display);
  letter-spacing: -.01em;
}
.qh-theme .text-muted { color: var(--qh-muted) !important; }
.qh-theme .text-primary { color: var(--qh-green-700) !important; }
.qh-theme .text-success { color: #15803D !important; }
.qh-theme .text-info { color: var(--qh-green-900) !important; }
.qh-theme .bg-primary { background-color: var(--qh-green-700) !important; }
.qh-theme .bg-secondary { background-color: var(--qh-green-50) !important; }
.qh-theme .bg-dark { background-color: var(--qh-green-900) !important; }
.qh-theme .border-primary { border-color: var(--qh-green-700) !important; }
.qh-theme a { color: var(--qh-green-700); }
.qh-theme a:hover { color: var(--qh-green-900); }
.qh-theme ::selection { background: var(--qh-gold-50); color: var(--qh-green-900); }

/* Arabic keeps Tajawal */
.qh-theme .ardir, .qh-theme .fontarabicweeng, .qh-theme[dir="rtl"] { font-family: 'Tajawal', sans-serif; }
.qh-theme.qh-rtl, .qh-theme.qh-rtl h1, .qh-theme.qh-rtl h2, .qh-theme.qh-rtl h3,
.qh-theme.qh-rtl h4, .qh-theme.qh-rtl h5, .qh-theme.qh-rtl h6 { font-family: 'Tajawal', sans-serif; }

/* ---- Buttons ------------------------------------------------------------ */
.qh-theme .btn { border-radius: var(--qh-radius-md); font-weight: 600; }
.qh-theme .btn-primary,
.qh-theme .btn-primary:disabled, .qh-theme .btn-primary.disabled {
  color: #fff; background-color: var(--qh-green-700); border-color: var(--qh-green-700); box-shadow: none;
}
.qh-theme .btn-primary:hover, .qh-theme .btn-primary:focus,
.qh-theme .btn-primary:active, .qh-theme .btn-primary.active, .qh-theme .show > .btn-primary.dropdown-toggle {
  color: #fff; background-color: var(--qh-green-900); border-color: var(--qh-green-900); box-shadow: none;
}
.qh-theme .btn-outline-primary { color: var(--qh-green-700); border-color: var(--qh-green-700); background: transparent; }
.qh-theme .btn-outline-primary:hover, .qh-theme .btn-outline-primary:focus,
.qh-theme .btn-outline-primary:active, .qh-theme .btn-outline-primary.active {
  color: #fff; background-color: var(--qh-green-700); border-color: var(--qh-green-700); box-shadow: none;
}
.qh-theme .btn-secondary { color: var(--qh-green-900); background: var(--qh-green-50); border-color: var(--qh-border); }
.qh-theme .btn-secondary:hover, .qh-theme .btn-secondary:focus { color: var(--qh-green-900); background: #DDEFE4; border-color: #C5D5CC; }
.qh-theme .btn-outline-secondary { color: var(--qh-text); border-color: var(--qh-border); }
.qh-theme .btn-outline-secondary:hover { color: var(--qh-green-900); background: var(--qh-green-50); border-color: #C5D5CC; }
.qh-theme .btn-outline-info { color: var(--qh-green-900); border-color: var(--qh-border); }
.qh-theme .btn-outline-info:hover, .qh-theme .btn-outline-info:focus { color: var(--qh-green-900); background: var(--qh-green-50); border-color: var(--qh-green-700); }
.qh-theme .btn-link { color: var(--qh-green-700); }
.qh-theme .btn-link:hover { color: var(--qh-green-900); }
.qh-theme .btn-success { background-color: #15803D; border-color: #15803D; }
/* gold CTA */
.qh-theme .btn-gold { color: var(--qh-green-900); background: var(--qh-gold-500); border: 1px solid var(--qh-gold-500); }
.qh-theme .btn-gold:hover, .qh-theme .btn-gold:focus { color: var(--qh-green-900); background: var(--qh-gold-600); border-color: var(--qh-gold-600); }
.qh-theme .btn-outline-gold { color: var(--qh-gold-600); border: 1px solid var(--qh-gold-500); background: transparent; }
.qh-theme .btn-outline-gold:hover, .qh-theme .btn-outline-gold:focus { color: var(--qh-green-900); background: var(--qh-gold-500); border-color: var(--qh-gold-500); }
/* the old "white" secondary CTA (.rbn) becomes an outline */
.qh-theme .rbn { background: #fff !important; color: var(--qh-green-700) !important; border-color: var(--qh-green-700) !important; }
.qh-theme .rbn:hover { background: var(--qh-green-50) !important; }
.qh-theme .btn:focus-visible, .qh-theme a:focus-visible { outline: none; box-shadow: var(--qh-focus); }

/* ---- Forms -------------------------------------------------------------- */
.qh-theme .form-control, .qh-theme .form-select {
  border-color: var(--qh-border); border-radius: var(--qh-radius-md); color: var(--qh-text);
}
.qh-theme .form-control:focus, .qh-theme .form-select:focus,
.qh-theme .select2-container--focus .select2-selection {
  border-color: var(--qh-green-700) !important; box-shadow: var(--qh-focus) !important;
}
.qh-theme .form-check-input:checked { background-color: var(--qh-green-700); border-color: var(--qh-green-700); }
.qh-theme .form-check-input:focus { border-color: var(--qh-green-700); box-shadow: var(--qh-focus); }
.qh-theme input[type="radio"], .qh-theme input[type="checkbox"] { accent-color: var(--qh-green-700); }
.qh-theme .form-label { color: var(--qh-heading); font-weight: 600; }
.qh-theme .label-colour { color: var(--qh-muted); }
.qh-theme .input-group-text { border-color: var(--qh-border); background: var(--qh-subtle); }
.qh-theme .iti__selected-flag { border-radius: var(--qh-radius-md) 0 0 var(--qh-radius-md); }

/* ---- Cards, tables, badges, pagination ---------------------------------- */
.qh-theme .card { border-color: var(--qh-border); border-radius: var(--qh-radius-xl); }
.qh-theme .card.shadow-sm, .qh-theme .card-hover { box-shadow: var(--qh-shadow-card) !important; }
.qh-theme .card-hover:hover { box-shadow: var(--qh-shadow-lift) !important; border-color: #C5D5CC; }
.qh-theme .table { --bs-table-color: var(--qh-text); border-color: var(--qh-border); }
.qh-theme .table > thead { background: var(--qh-subtle); color: var(--qh-heading); }
.qh-theme .badge.bg-primary { background-color: var(--qh-green-700) !important; }
.qh-theme .badge.bg-warning { background-color: var(--qh-gold-500) !important; color: var(--qh-green-900); }
.qh-theme .page-link { color: var(--qh-green-700); border-color: var(--qh-border); }
.qh-theme .page-link:hover, .qh-theme .page-link:focus { color: var(--qh-green-900); background: var(--qh-green-50); box-shadow: none; }
.qh-theme .page-item.active .page-link { color: #fff; background-color: var(--qh-green-700); border-color: var(--qh-green-700); }
.qh-theme .breadcrumb-item a { color: var(--qh-green-700); }
.qh-theme .tns-nav button.tns-nav-active, .qh-theme .tns-nav [aria-selected="true"] { background-color: var(--qh-gold-500) !important; }
.qh-theme .tns-controls button:hover { background-color: var(--qh-green-700); border-color: var(--qh-green-700); color: #fff; }

/* ---- Dropdowns, offcanvas, modals --------------------------------------- */
.qh-theme .dropdown-menu { border-color: var(--qh-border); border-radius: var(--qh-radius-md); box-shadow: var(--qh-shadow-lift); }
.qh-theme .dropdown-item:hover, .qh-theme .dropdown-item:focus { color: var(--qh-green-900); background: var(--qh-green-50); }
.qh-theme .dropdown-item.active, .qh-theme .dropdown-item:active { color: #fff; background: var(--qh-green-700); }
.qh-theme .offcanvas { border-color: var(--qh-border); }
.qh-theme .offcanvas-header { border-bottom: 1px solid var(--qh-border); }
.qh-theme .offcanvas .dropdown-item { color: var(--qh-text); border-color: var(--qh-border) !important; }
.qh-theme .modal-content { border: 0; border-radius: var(--qh-radius-xl); box-shadow: var(--qh-shadow-lift); overflow: hidden; }
.qh-theme .modal-header { background: var(--qh-green-50); border-bottom: 1px solid var(--qh-border); }
.qh-theme .modal-header .modal-title { color: var(--qh-green-900); font-weight: 700; }
.qh-theme .modal-footer { border-top: 1px solid var(--qh-border); background: var(--qh-subtle); }
.qh-theme .modal-backdrop.show { opacity: .55; }

/* ---- Header ------------------------------------------------------------- */
.qh-theme .qh-header {
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid var(--qh-border);
  box-shadow: 0 1px 0 rgba(6, 78, 59, .02);
  padding-top: .6rem; padding-bottom: .6rem;
  backdrop-filter: saturate(140%) blur(6px);
}
.qh-theme .qh-header.navbar-stuck { box-shadow: var(--qh-shadow-card); }
.qh-theme .qh-header .navbar-brand img { max-height: 46px; width: auto; }
.qh-theme .qh-header .nav-link {
  color: var(--qh-text) !important; font-weight: 600; font-size: .95rem;
  padding: .55rem .8rem !important; border-radius: 10px; position: relative;
}
.qh-theme .qh-header .nav-link:hover, .qh-theme .qh-header .nav-link:focus { color: var(--qh-green-700) !important; background: var(--qh-green-50); }
.qh-theme .qh-header .nav-item.active > .nav-link { color: var(--qh-green-900) !important; }
.qh-theme .qh-header .nav-item.active > .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 3px; border-radius: 3px; background: var(--qh-gold-500);
}
.qh-theme .qh-header .navbar-toggler { border: 1px solid var(--qh-border); border-radius: 10px; padding: .4rem .55rem; }
.qh-theme .qh-header .navbar-toggler:focus { box-shadow: var(--qh-focus); }
.qh-theme .qh-header .qh-actions .btn { padding: .45rem 1rem; font-size: .9rem; }
.qh-theme .qh-header .qh-lang { color: var(--qh-green-900); font-weight: 700; text-decoration: none; font-family: 'Tajawal', sans-serif; }
.qh-theme .qh-header .qh-lang:hover { color: var(--qh-gold-600); }
.qh-theme .qh-avatar { border: 2px solid var(--qh-gold-500); }
@media (max-width: 991.98px) {
  .qh-theme .qh-header .navbar-collapse {
    margin-top: .6rem; padding: .5rem; border: 1px solid var(--qh-border); border-radius: var(--qh-radius-md); background: #fff;
  }
  .qh-theme .qh-header .nav-item.active > .nav-link::after { left: 0; right: auto; top: .55rem; bottom: .55rem; width: 3px; height: auto; }
  .qh-theme .qh-header .qh-mobile-actions .btn { width: 100%; }
}

/* ---- Full-width page, no stray gaps -------------------------------------- */
.qh-theme .box-solid { display: none; }
.qh-theme .page-wrapper { background: var(--qh-canvas); }

/* ---- Homepage ----------------------------------------------------------- */
.qh-theme .qh-hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(226, 170, 34, .14), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--qh-green-50) 100%);
  border-bottom: 1px solid var(--qh-border);
  padding: 7.5rem 0 3.5rem;
}
.qh-theme .qh-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--qh-gold-50); color: #7A5A0B; font-weight: 700; font-size: .8rem; border: 1px solid #F3DC9E;
}
.qh-theme .qh-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.12; font-weight: 800; }
.qh-theme .qh-hero h1 .qh-accent { color: var(--qh-green-700); }
.qh-theme .qh-hero .lead { color: var(--qh-text); font-size: 1.1rem; }
.qh-theme .qh-hero-art { background: #fff; border: 1px solid var(--qh-border); border-radius: 28px; box-shadow: var(--qh-shadow-lift); padding: 1rem; }
.qh-theme .qh-trust { margin-top: -1.75rem; position: relative; z-index: 2; }
.qh-theme .qh-trust-card { background: #fff; border: 1px solid var(--qh-border); border-radius: var(--qh-radius-xl); box-shadow: var(--qh-shadow-card); padding: 1rem 1.25rem; }
.qh-theme .qh-trust-item { display: flex; align-items: center; gap: .8rem; }
.qh-theme .qh-trust-item + .qh-trust-item { border-left: 1px solid var(--qh-border); }
.qh-theme .qh-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--qh-green-50); color: var(--qh-green-700); font-size: 1.25rem;
}
.qh-theme .qh-icon.gold { background: var(--qh-gold-50); color: var(--qh-gold-600); }
.qh-theme .qh-trust-item h6 { margin: 0; font-size: 1rem; }
.qh-theme .qh-trust-item small { color: var(--qh-muted); }
@media (max-width: 767.98px) {
  .qh-theme .qh-hero { padding: 6.5rem 0 3rem; text-align: center; }
  .qh-theme .qh-trust-item + .qh-trust-item { border-left: 0; border-top: 1px solid var(--qh-border); padding-top: .8rem; }
}
.qh-theme .qh-section { padding: 3.5rem 0; }
.qh-theme .qh-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.qh-theme .qh-section-head h2 { margin: 0; font-weight: 800; }
.qh-theme .qh-section-head p { margin: .35rem 0 0; color: var(--qh-muted); }
.qh-theme .qh-step { height: 100%; background: #fff; border: 1px solid var(--qh-border); border-radius: var(--qh-radius-xl); padding: 1.4rem; box-shadow: var(--qh-shadow-card); }
.qh-theme .qh-step-num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--qh-gold-500); color: var(--qh-green-900); font-weight: 800; margin-bottom: .8rem;
}
.qh-theme .qh-step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.qh-theme .qh-step p { color: var(--qh-muted); margin: 0; font-size: .92rem; }
.qh-theme .qh-cta {
  background: linear-gradient(135deg, var(--qh-green-900), var(--qh-green-700)); color: #fff; border-radius: 28px; padding: 2.2rem;
  box-shadow: var(--qh-shadow-lift);
}
.qh-theme .qh-cta h2, .qh-theme .qh-cta h3 { color: #fff; }
.qh-theme .qh-cta p { color: rgba(255, 255, 255, .82); }

/* Candidate cards (home carousel, /resumes, related) */
.qh-theme .robin_hood { border: 1px solid var(--qh-border) !important; border-radius: var(--qh-radius-xl) !important; overflow: hidden; background: #fff !important; }
.qh-theme .box-thumb { border-radius: 16px; margin: .6rem .6rem 0; background: var(--qh-green-50); }
.qh-theme .robin_text { color: var(--qh-text); }
.qh-theme .robin_text .fi-calendar, .qh-theme .fi-briefcase { color: var(--qh-gold-600) !important; }
.qh-theme .name-candidate h3 { color: var(--qh-heading); }

/* /resumes filters sidebar */
.qh-theme .desktop-filter { background: #fff; border-color: var(--qh-border) !important; }
.qh-theme .desktop-filter h3 { color: var(--qh-heading); }

/* ---- Footer ------------------------------------------------------------- */
.qh-theme .qh-footer { background: var(--qh-green-900); color: rgba(255, 255, 255, .82); padding: 3.5rem 0 0; margin-top: 2rem; }
.qh-theme .qh-footer h4 { color: var(--qh-gold-500); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; margin-bottom: 1rem; }
.qh-theme .qh-footer p, .qh-theme .qh-footer li { color: rgba(255, 255, 255, .82); }
.qh-theme .qh-footer a { color: #fff; text-decoration: none; }
.qh-theme .qh-footer a:hover { color: var(--qh-gold-500); }
.qh-theme .qh-footer ul { list-style: none; padding: 0; margin: 0; }
.qh-theme .qh-footer li { margin-bottom: .55rem; }
.qh-theme .qh-footer .qh-footer-logo { background: #fff; border-radius: 14px; padding: .55rem .8rem; display: inline-block; }
.qh-theme .qh-footer .qh-footer-logo img { max-height: 44px; width: auto; }
.qh-theme .qh-footer .qh-social a {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); margin-right: .4rem; font-size: 1.05rem;
}
.qh-theme .qh-footer .qh-social a:hover { background: var(--qh-gold-500); color: var(--qh-green-900); }
.qh-theme .qh-footer .qh-wa { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--qh-radius-xl); padding: 1.4rem; }
.qh-theme .qh-footer .qh-wa h3 { color: #fff; font-family: 'Tajawal', sans-serif; font-size: 1.35rem; }
.qh-theme .qh-footer .qh-wa p { font-family: 'Tajawal', sans-serif; }
.qh-theme .qh-footer .qh-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding: 1.2rem 0; font-size: .9rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 991.98px) { .qh-theme .qh-footer .qh-bottom { padding-bottom: 5.5rem; } }

/* ---- Mobile bottom nav -------------------------------------------------- */
.qh-theme .bottom-nav { border-top: 1px solid var(--qh-border); box-shadow: 0 -6px 18px rgba(6, 78, 59, .08); padding-top: 10px; }
.qh-theme .bottom-nav-item a { color: var(--qh-muted) !important; }
.qh-theme .bottom-nav-item a.active, .qh-theme .bottom-nav-item a:hover { color: var(--qh-green-700) !important; }
.qh-theme .bottom-nav-item p { margin-bottom: 8px; }
.qh-theme .btn-scroll-top { background-color: var(--qh-green-700); }
@media (max-width: 991.98px) { .qh-theme .btn-scroll-top { bottom: 90px; } }

/* ---- "Choose Your Nearest Recruitment Office" modal (#modalLarge) -------- */
.qh-theme .qh-office-modal .modal-body { padding: 1rem; }
.qh-theme .qh-office-modal .qh-office-help { color: var(--qh-muted); font-size: .9rem; margin-bottom: .75rem; }
.qh-theme .qh-office-modal .table { margin: 0; border-collapse: separate; border-spacing: 0 .5rem; }
.qh-theme .qh-office-modal .table > thead th {
  background: transparent; border: 0; color: var(--qh-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: .25rem 1rem;
}
.qh-theme .qh-office-modal .table > tbody > tr > td {
  background: #fff; border-top: 1px solid var(--qh-border); border-bottom: 1px solid var(--qh-border); vertical-align: middle; padding: .9rem 1rem !important;
}
.qh-theme .qh-office-modal .table > tbody > tr > td:first-child { border-left: 1px solid var(--qh-border); border-radius: 14px 0 0 14px; color: var(--qh-heading); font-weight: 700; }
.qh-theme .qh-office-modal .table > tbody > tr > td:last-child { border-right: 1px solid var(--qh-border); border-radius: 0 14px 14px 0; width: 90px; }
.qh-theme .qh-office-modal .table > tbody > tr { cursor: pointer; }
.qh-theme .qh-office-modal .table > tbody > tr:hover > td { background: var(--qh-subtle); }
.qh-theme .qh-office-modal .table > tbody > tr:has(input:checked) > td { background: var(--qh-green-50); border-color: var(--qh-green-700); }
.qh-theme .qh-office-modal .table > tbody > tr:has(input:checked) > td:first-child { box-shadow: inset 4px 0 0 var(--qh-gold-500); }
.qh-theme .qh-office-modal .address-para { display: block; margin-top: .2rem; color: var(--qh-muted); font-weight: 400; font-size: .88rem; }
.qh-theme .qh-office-modal input[type="radio"] { width: 1.25rem; height: 1.25rem; }
.qh-theme .qh-office-modal .table-bordered > :not(caption) > * > * { border-width: 0; }
@media (max-width: 575.98px) {
  .qh-theme .qh-office-modal .modal-dialog { margin: .5rem; }
  .qh-theme .qh-office-modal .table > tbody > tr > td { padding: .75rem !important; }
  .qh-theme .qh-office-modal .table > tbody > tr > td:last-child { width: 56px; padding-top: .75rem !important; }
  .qh-theme .qh-office-modal .modal-footer .btn { flex: 1 1 0; }
}
