/* =============================================================================
   Hesabla — JobHub theme customisations
   Layered ON TOP of JobHub's compiled main.css.
   - Adds a dark-mode palette (JobHub ships light-only) via [data-theme="dark"].
   - Brand, theme-toggle and language-switcher styling for the header.
   - Small Hesabla-specific tweaks (calculator cards, badges, Azerbaijani text).
   Light mode = JobHub defaults untouched.
   ============================================================================= */

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --hb-brand:        #9777fa;   /* JobHub primary purple            */
  --hb-brand-2:      #7856dd;
  --hb-brand-hover:  #6d4bd3;
  --hb-blue:         #5192ff;

  /* Light (JobHub) surface tokens — used by shared components */
  --hb-bg:        #ffffff;
  --hb-surface:   #ffffff;
  --hb-card:      #ffffff;
  --hb-border:    rgba(6, 18, 36, 0.1);
  --hb-text:      #37404e;
  --hb-heading:   #1f2938;
  --hb-muted:     #88929b;
}

/* Dark palette — cohesive with the JobHub purple accent */
:root[data-theme="dark"] {
  --hb-bg:        #0d0d14;
  --hb-surface:   #14141f;
  --hb-card:      #1a1a2e;
  --hb-card-2:    #1e1e35;
  --hb-border:    #2a2a42;
  --hb-text:      #c9c9de;
  --hb-heading:   #f0f0f8;
  --hb-muted:     #9090b0;
}

/* =============================================================================
   LEGACY-TOKEN COMPATIBILITY SHIM
   The original Hesabla components (calculator-feedback, internship-promo, the
   calculator page styles) reference CSS custom properties from the old global
   stylesheet (which the JobHub layout does not load). Re-map those names onto
   the JobHub palette so those self-styled components render correctly — in both
   themes — on JobHub pages. All values derive from --hb-* so they follow the
   light/dark toggle automatically.
   ============================================================================= */
:root {
  --primary:        var(--hb-brand);
  --primary-dark:   var(--hb-brand-hover);
  --primary-glow:   rgba(151, 119, 250, 0.16);
  --secondary:      var(--hb-brand-2);
  --accent:         #f472b6;
  --success:        #00c070;
  --warning:        #f59e0b;
  --danger:         #f87171;

  --bg-base:        var(--hb-bg);
  --bg-surface:     var(--hb-surface);
  --bg-card:        var(--hb-card);
  --bg-card-hover:  var(--hb-card);
  --border:         var(--hb-border);
  --border-hover:   var(--hb-brand);
  --bg-subtle:        rgba(151, 119, 250, 0.06);
  --bg-subtle-strong: rgba(151, 119, 250, 0.12);
  --bg-row-hover:     rgba(20, 20, 43, 0.02);

  --text-primary:   var(--hb-heading);
  --text-secondary: var(--hb-text);
  --text-muted:     var(--hb-muted);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(31,31,51,0.06);
  --shadow-md: 0 9px 26px rgba(31,31,51,0.08);
  --shadow-lg: 0 20px 60px -6px rgba(0,0,0,0.10);
  --shadow-primary: 0 6px 20px rgba(151,119,250,0.30);
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
:root[data-theme="dark"] {
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 60px -6px rgba(0,0,0,0.55);
  --bg-row-hover: rgba(255, 255, 255, 0.03);
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: var(--hb-brand) rgba(151, 119, 250, 0.14);
}
html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
html::-webkit-scrollbar-track {
  background: rgba(151, 119, 250, 0.10);
}
html::-webkit-scrollbar-thumb {
  background: var(--hb-brand);
  border: 3px solid var(--hb-bg);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--hb-brand-hover);
}
:root[data-theme="dark"] {
  scrollbar-color: var(--hb-brand) var(--hb-surface);
}
:root[data-theme="dark"]::-webkit-scrollbar-track {
  background: var(--hb-surface);
}
:root[data-theme="dark"]::-webkit-scrollbar-thumb {
  border-color: var(--hb-bg);
}

/* generic calculator panel + header (used by estimator; uomg.css overrides its own) */
.calculator-panel { background: var(--hb-card); border: 1px solid var(--hb-border); border-radius: 16px; padding: 32px; }
.calc-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.calc-header h2 { font-size: 22px; margin: 0; }
@media (max-width: 575px) { .calculator-panel { padding: 22px 18px; } }

/* section-header / divider utilities (used by legacy result sections) */
.section-header { text-align: center; margin-bottom: 10px; }
.section-header h2 { margin-bottom: 6px; }
.divider { width: 64px; height: 3px; margin: 14px auto 0; border-radius: 2px; background: linear-gradient(90deg, #9777fa, #5192ff); }

/* gradient-text helper used by several legacy headings */
.text-gradient {
  background: linear-gradient(135deg, #9777fa, #5192ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #9777fa;
}

/* Global form-control styling so Bootstrap inputs match the JobHub look
   (used by the contact form, estimator, legacy components). */
.form-control {
  border: 1px solid var(--hb-border); border-radius: 10px;
  padding: 13px 16px; background: #fff; color: var(--hb-heading);
  font-family: "Open Sans", sans-serif; font-size: 15px; line-height: 1.4;
}
.form-control:focus {
  outline: none; border-color: var(--hb-brand);
  box-shadow: 0 0 0 3px rgba(151,119,250,0.15);
}
.form-control::placeholder { color: var(--hb-muted); }
:root[data-theme="dark"] .form-control { background: var(--hb-surface); color: var(--hb-text); border-color: var(--hb-border); }
select.form-control { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2388929b' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* =============================================================================
   CALCULATORS DIRECTORY (listing page)
   ============================================================================= */
.calc-search-wrap { position: relative; max-width: 560px; margin: 0 auto 44px; }
.calc-search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .6; }
.calc-search-input {
  width: 100%; padding: 16px 48px; border-radius: 999px;
  border: 1px solid var(--hb-border); background: var(--hb-card); color: var(--hb-heading);
  font-family: "Open Sans", sans-serif; font-size: 15px;
}
.calc-search-input:focus { outline: none; border-color: var(--hb-brand); box-shadow: 0 0 0 3px rgba(151,119,250,0.15); }
.calc-search-clear {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--hb-border); color: var(--hb-heading); font-size: 18px; line-height: 1;
}
.calc-category { margin-bottom: 40px; }
.calc-category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.calc-category-title { font-size: 24px; margin: 0; }
.calc-category-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px;
  padding: 0 8px; border-radius: 999px; background: rgba(151,119,250,0.14); color: var(--hb-brand);
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 13px;
}
.calc-hidden { display: none !important; }
.calc-no-results { text-align: center; color: var(--hb-muted); padding: 30px 0; }

/* Legacy button variants used by the old components (no JobHub collision) */
.btn-primary { background: var(--hb-brand); color: #fff; }
.btn-primary:hover { background: var(--hb-brand-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--hb-heading); border: 1px solid var(--hb-border); }
.btn-outline:hover { background: var(--hb-brand); color: #fff; border-color: var(--hb-brand); }
.btn-ghost { background: transparent; color: var(--hb-heading); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--hb-brand); }
.btn-success { background: #00c070; color: #fff; }
.btn-success:hover { background: #00a862; color: #fff; }
.btn-danger { background: #f87171; color: #fff; }
.btn-danger:hover { background: #ef5350; color: #fff; }

/* ── Azerbaijani text: make sure the schwa (ə) etc. render in the brand font ─ */
body,
h1, h2, h3, h4, h5, h6,
.font-heading, .btn, .main-menu li a {
  font-feature-settings: "kern" 1;
}

/* =============================================================================
   GLOBAL UI FIXES
   ============================================================================= */
/* Hamburger only below the desktop-nav breakpoint (nav shows at >=1200/xl). */
@media (min-width: 1200px) {
  .header-nav .burger-icon { display: none !important; }
}
/* Remove the scroll-to-top (#top) arrow entirely. */
#scrollUp { display: none !important; }

/* Footer: give the content breathing room from the top edge */
.footer {
  border-top: 1px solid var(--hb-border);
  padding-top: 64px;
  padding-bottom: 28px;
}
@media (max-width: 767px) { .footer { padding-top: 48px; } }

/* Footer social + email */
.footer-contact { margin-top: 18px; }
.footer-contact a.footer-mail {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--hb-text); font-size: 15px; text-decoration: none;
}
.footer-contact a.footer-mail:hover { color: var(--hb-brand); }
.hb-social { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; }
/* separate the social icons from the stacked menu columns on mobile */
@media (max-width: 767px) {
  .hb-social { margin-bottom: 30px; }
}
.hb-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--hb-border); color: var(--hb-heading);
  transition: all .2s ease;
}
.hb-social a:hover { background: var(--hb-brand); border-color: var(--hb-brand); color: #fff; transform: translateY(-2px); }
.hb-social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* Promo blocks (internship + social CTA): jobhub ships 0 bottom/right padding,
   leaving content flush to the edges — add balanced breathing room. */
.block-job-bg { padding: 55px 40px 55px 20px; }
.block-job-bg-homepage-2 { margin-top: 48px; margin-bottom: 24px; }
@media (max-width: 991px) { .block-job-bg { padding: 40px 28px; } }
@media (max-width: 767px) { .block-job-bg { padding: 32px 22px; } }
/* on mobile the promo text loses the desktop pl-90/pr-90 indent */
@media (max-width: 991px) { .box-info-job { padding-left: 0 !important; padding-right: 0 !important; } }

/* Internships banner search input — jobhub only styles it via a .form-search-job
   wrapper we don't use, so style .input-search-job directly (full width + icon). */
.box-filters .box-search-job { width: 100%; }
.box-filters .input-search-job {
  width: 100%;
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  padding: 15px 18px 15px 48px;
  background: var(--hb-surface) url("../imgs/theme/icons/icon-search.svg") no-repeat 18px center;
  background-size: 18px 18px;
  color: var(--hb-heading);
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.box-filters .input-search-job::placeholder { color: var(--hb-muted); }
.box-filters .input-search-job:focus {
  outline: none; border-color: var(--hb-brand); box-shadow: 0 0 0 3px rgba(151, 119, 250, 0.15);
}
/* internship card meta tags — space them on both axes so they don't touch when wrapping */
.internship-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.internship-tags .btn { margin: 0; }

/* paid / unpaid pill tags (match the other card tags) */
.tag-paid   { background-color: #c5ffdc; color: #0b7a43; }
.tag-unpaid { background-color: #e6e8ec; color: #5b6470; }

/* mobile: push the apply button to the bottom-right and make it larger */
@media (max-width: 575px) {
  .internship-apply-col { text-align: right; margin-top: 18px; }
  .internship-apply-col .btn { padding: 13px 26px; font-size: 15px; }
}

/* location / work-type / duration row, moved below the logo + title block */
.card-job-meta { clear: both; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--hb-muted); font-size: 13px; }
.card-job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-job-meta i { color: var(--hb-brand); }

/* mobile: keep the search input and button side by side on one row */
@media (max-width: 767px) {
  .box-filters form { display: flex; flex-wrap: nowrap; align-items: center; }
  .box-filters form > [class*="col-"] { width: auto; }
  .box-filters form > [class*="col-"]:first-child { flex: 1 1 auto; }
  .box-filters form > [class*="col-"]:last-child { flex: 0 0 auto; margin-top: 0 !important; }
  .box-filters form .btn { white-space: nowrap; }
}

/* Social CTA section — circular icon links */
.social-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--hb-heading);
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.social-icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-icon:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.social-icon--instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icon--tiktok:hover   { background: #010101; }
.social-icon--linkedin:hover { background: #0a66c2; }

/* =============================================================================
   BRAND (text logo in place of the JobHub SVG)
   ============================================================================= */
.hesabla-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hb-heading);
}
.hesabla-brand:hover { color: var(--hb-heading); }
.hesabla-brand .brand-logo { height: 40px; width: auto; display: block; }
.hesabla-brand .brand-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--hb-heading);
}
.hesabla-brand .brand-accent { color: var(--hb-brand); }
/* keep the navy icon legible on the dark theme with a light chip */
:root[data-theme="dark"] .hesabla-brand .brand-logo {
  background: #fff; border-radius: 9px; padding: 4px; box-sizing: border-box;
}

/* =============================================================================
   HEADER — theme toggle + language switcher (replace Apply Now / Sign in)
   ============================================================================= */
.header-right .block-signin {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hb-border);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}
.nav-theme-toggle:hover {
  border-color: var(--hb-brand);
  transform: translateY(-2px);
}

.nav-lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  overflow: hidden;
}
.nav-lang {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  color: var(--hb-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-lang:hover { color: var(--hb-brand); }
.nav-lang.active {
  background: var(--hb-brand);
  color: #fff;
}

/* =============================================================================
   CALCULATOR CARDS (JobHub .card-grid look, adapted)
   ============================================================================= */
/* roomier, uniform gutters for the calculator card grids (both axes) */
.cards-row { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }

.calc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  padding: 30px 28px;
  margin-bottom: 0;                 /* spacing comes from .cards-row gutters */
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.calc-card .calc-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 27px; line-height: 1; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(151, 119, 250, 0.15), rgba(81, 146, 255, 0.15));
}
.calc-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.calc-card p {
  color: var(--hb-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1 1 auto;
  margin-bottom: 20px;
}
.calc-card .btn { align-self: flex-start; }
/* stronger, smoother hover for the redesigned cards */
.calc-card.hover-up:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(31, 31, 51, 0.10); border-color: rgba(151, 119, 250, 0.5); }
:root[data-theme="dark"] .calc-card.hover-up:hover { box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5); }

/* status + "new" badges */
.calc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  padding: 4px 11px;
  border-radius: 999px;
}
.calc-badge-new  { background: rgba(0, 192, 112, 0.14); color: #00c070; }
.calc-badge-soon { background: rgba(136, 146, 155, 0.16); color: var(--hb-muted); }
.calc-card { position: relative; }
.calc-card.is-soon { opacity: 0.72; }

/* Dashboard hero: compact JobHub Home 2 treatment */
.dashboard-hero.banner-home-3 {
  overflow: hidden;
  padding-top: 40px !important;
  padding-bottom: 72px !important;
}
.dashboard-hero.banner-home-3::before,
.dashboard-hero.banner-home-3::after {
  width: 315px;
  height: 276px;
  bottom: 28px;
}
.dashboard-hero.banner-home-3::before {
  left: 12px;
}
.dashboard-hero.banner-home-3::after {
  right: 12px;
}
.dashboard-hero .banner-hero .block-banner {
  padding-top: 42px;
  padding-right: 80px;
  padding-bottom: 22px;
}
.dashboard-hero .heading-banner {
  font-size: 58px;
  line-height: 1.18;
  margin-bottom: 0;
}
.dashboard-hero .banner-hero .block-banner .form-find .input-keysearch {
  background: var(--hb-surface) url("../imgs/theme/icons/icon-search.svg") no-repeat left 18px center;
  background-size: 20px 20px;
}
.dashboard-hero .banner-hero .block-banner .form-find {
  padding: 18px 28px;
}
.dashboard-hero .banner-hero .block-banner .form-find .btn-find {
  min-width: 56px;
  width: 56px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 56px;
  font-size: 18px;
  line-height: 1;
}
.dashboard-hero .banner-hero .block-banner .form-find .btn-find i {
  color: #fff;
  line-height: 1;
}

/* Popular calculator tags */
.dashboard-popular-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}
.dashboard-popular-tags strong {
  margin-right: 2px;
}
.dashboard-popular-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(151, 119, 250, 0.22);
  border-radius: 999px;
  background: rgba(151, 119, 250, 0.08);
  color: var(--hb-brand) !important;
  font-family: "Montserrat", sans-serif;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.2;
}
.dashboard-popular-tags a:hover {
  background: var(--hb-brand);
  border-color: var(--hb-brand);
  color: #fff !important;
}

@media (max-width: 991px) {
  .dashboard-hero.banner-home-3 {
    padding-top: 30px !important;
    padding-bottom: 42px !important;
  }
  .dashboard-hero .banner-hero .block-banner {
    padding-right: var(--bs-gutter-x, 0.75rem);
  }
  .dashboard-hero .heading-banner {
    font-size: 42px;
  }
  .dashboard-popular-tags {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .dashboard-hero.banner-home-3 {
    padding-top: 24px !important;
    padding-bottom: 30px !important;
    border-bottom-right-radius: 22px;
    border-bottom-left-radius: 22px;
  }
  .dashboard-hero.banner-home-3::before,
  .dashboard-hero.banner-home-3::after {
    display: none;
  }
  .dashboard-hero .banner-hero {
    padding: 0 14px;
  }
  .dashboard-hero .banner-hero .block-banner {
    padding: 18px 0 0;
  }
  .dashboard-hero .heading-banner {
    font-size: 32px;
    line-height: 1.16;
  }
  .dashboard-hero .form-find.calc-find {
    margin-top: 28px !important;
    max-width: 100%;
  }
  .dashboard-hero .banner-hero .block-banner .form-find {
    border-radius: 16px;
    padding: 10px;
  }
  .dashboard-hero .banner-hero .block-banner .form-find form {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }
  .dashboard-hero .banner-hero .block-banner .form-find form input {
    min-width: 0;
    height: 46px;
    margin: 0 !important;
    padding: 9px 14px 9px 44px;
    font-size: 14px;
  }
  .dashboard-hero .banner-hero .block-banner .form-find .input-keysearch {
    background-position: left 14px center;
    background-size: 18px 18px;
  }
  .dashboard-hero .banner-hero .block-banner .form-find form button,
  .dashboard-hero .banner-hero .block-banner .form-find .btn-find {
    width: 46px;
    min-width: 46px;
    height: 46px;
    flex-basis: 46px;
    margin: 0 !important;
    border-radius: 12px;
  }
  .dashboard-popular-tags {
    display: none;
  }
}

/* Hero eyebrow badge */
.hero-eyebrow {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--hb-brand);
  background: rgba(151, 119, 250, 0.12);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
:root[data-theme="dark"] .hero-eyebrow { background: rgba(151, 119, 250, 0.18); }

/* keep the dashboard calculator search box comfortably sized */
.dashboard-hero .form-find.calc-find {
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}

/* Centred hero: hide JobHub's off-centre decorative cream panel
   (normally hidden by the .banner-home-3 class on Home 2). */
.hesabla-hero .banner-hero::before { display: none; }
.hesabla-hero .banner-hero { padding: 0; }

/* =============================================================================
   ARTICLE CARDS (latest articles on home — JobHub card-grid look with an image)
   ============================================================================= */
.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card .article-thumb {
  display: block;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(151, 119, 250, 0.08);
}
.article-card .article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-card .article-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.article-card .article-cat {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--hb-brand);
  margin-bottom: 12px;
}
.article-card h5 { font-size: 18px; line-height: 1.4; margin-bottom: 12px; }
.article-card h5 a { color: var(--hb-heading); }
.article-card h5 a:hover { color: var(--hb-brand); }
.article-card p {
  color: var(--hb-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1 1 auto;
  margin-bottom: 16px;
}
.article-card .article-meta {
  font-size: 13px;
  color: var(--hb-muted);
  display: flex;
  gap: 16px;
}

/* =============================================================================
   DARK MODE OVERRIDES  (JobHub hard-codes light colours, so remap surfaces)
   ============================================================================= */
:root[data-theme="dark"] body {
  background: var(--hb-bg);
  color: var(--hb-text);
}
/* the light decorative page-top blur image only suits the light theme */
:root[data-theme="dark"] body { background-image: none; }

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6,
:root[data-theme="dark"] .font-heading,
:root[data-theme="dark"] .section-title,
:root[data-theme="dark"] .heading-banner {
  color: var(--hb-heading);
}
:root[data-theme="dark"] p,
:root[data-theme="dark"] .text-normal,
:root[data-theme="dark"] .color-black-5 { color: var(--hb-text); }

/* Header */
:root[data-theme="dark"] .header { background: var(--hb-surface); }
:root[data-theme="dark"] .sticky-bar.stick {
  background: var(--hb-surface);
  border-bottom: 1px solid var(--hb-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] .header .main-menu li a { color: var(--hb-heading); }
:root[data-theme="dark"] .header .main-menu li a:hover { color: var(--hb-brand); }
:root[data-theme="dark"] .hesabla-brand { color: var(--hb-heading); }

/* Dropdown sub-menus */
:root[data-theme="dark"] .header .main-menu li ul.sub-menu {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] .header .main-menu li ul.sub-menu li a { color: var(--hb-text); }
:root[data-theme="dark"] .header .main-menu li ul.sub-menu li a:hover { color: var(--hb-brand); }

/* Hero */
:root[data-theme="dark"] .bg-banner-about { background-color: var(--hb-surface); }
:root[data-theme="dark"] .dashboard-hero .banner-hero::before {
  background-color: var(--hb-surface);
}
:root[data-theme="dark"] .banner-hero .block-banner .form-find {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
}
:root[data-theme="dark"] .banner-hero .block-banner .form-find .form-input {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  color: var(--hb-text);
}
:root[data-theme="dark"] .dashboard-hero .banner-hero .block-banner .form-find .input-keysearch {
  background: var(--hb-surface) url("../imgs/theme/icons/icon-search.svg") no-repeat left 18px center;
  background-size: 20px 20px;
}
:root[data-theme="dark"] .dashboard-popular-tags strong {
  color: var(--hb-heading);
}
:root[data-theme="dark"] .dashboard-popular-tags a {
  background: rgba(151, 119, 250, 0.14);
  border-color: rgba(151, 119, 250, 0.34);
}

/* Cards */
:root[data-theme="dark"] .card-grid,
:root[data-theme="dark"] .list-recent-jobs .card-job,
:root[data-theme="dark"] .card-grid-3,
:root[data-theme="dark"] .card-shadow {
  background: var(--hb-card);
  border-color: var(--hb-border);
}
:root[data-theme="dark"] .card-grid a { color: var(--hb-heading); }
:root[data-theme="dark"] .card-grid a:hover { color: var(--hb-brand); }
:root[data-theme="dark"] .calc-card p { color: var(--hb-muted); }

/* Buttons that use a light/bordered style */
:root[data-theme="dark"] .btn-border {
  background: transparent;
  color: var(--hb-heading);
  border-color: var(--hb-border);
}
:root[data-theme="dark"] .btn-border:hover {
  background: var(--hb-brand);
  color: #fff;
  border-color: var(--hb-brand);
}

/* Toggle + lang switcher chrome */
:root[data-theme="dark"] .nav-theme-toggle,
:root[data-theme="dark"] .nav-lang-switcher { border-color: var(--hb-border); }
:root[data-theme="dark"] .nav-lang { color: var(--hb-muted); }
:root[data-theme="dark"] .nav-lang.active { background: var(--hb-brand); color: #fff; }

/* Footer */
:root[data-theme="dark"] .footer {
  background: var(--hb-surface);
  border-top: 1px solid var(--hb-border);
}
:root[data-theme="dark"] .footer h6 { color: var(--hb-heading); }
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .footer .menu-footer li a,
:root[data-theme="dark"] .footer .footer-bottom { color: var(--hb-muted); }
:root[data-theme="dark"] .footer .menu-footer li a:hover { color: var(--hb-brand); }

/* Mobile drawer */
/* only the close (burger) icon remains in the top bar — keep it on the right, no divider */
.mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-top {
  justify-content: flex-end;
  border-bottom: none;
}

/* non-scrollable drawer: kill the overflow scroll and hide the PerfectScrollbar rails */
.mobile-header-wrapper-style .mobile-header-wrapper-inner { overflow: hidden !important; }
.mobile-header-wrapper-style .ps__rail-x,
.mobile-header-wrapper-style .ps__rail-y { display: none !important; }

:root[data-theme="dark"] .mobile-header-wrapper-style { background: var(--hb-surface); }
:root[data-theme="dark"] .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-top {
  background: var(--hb-surface);
  border-bottom-color: var(--hb-surface);
}
/* JobHub's base link rule is highly specific (#080a28), so match its selector depth to win in dark mode */
:root[data-theme="dark"] .mobile-header-wrapper-style .mobile-header-wrapper-inner .mobile-header-content-area .mobile-menu-wrap nav .mobile-menu li a {
  color: var(--hb-text);
}

/* Scroll-up button */
:root[data-theme="dark"] #scrollUp {
  background: var(--hb-card);
  color: var(--hb-heading);
  border: 1px solid var(--hb-border);
}

/* =============================================================================
   BLOG / ARTICLES  (blog-grid-2 listing + blog-single)
   ============================================================================= */
/* Equal-height listing cards */
.card-blog-1 { display: flex; flex-direction: column; height: 100%; }
.card-blog-1 .card-block-info { display: flex; flex-direction: column; flex: 1 1 auto; }
.card-blog-1 .post-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; }
.card-blog-1 .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-blog-1:hover .post-thumb img { transform: scale(1.05); }
.card-blog-1 .post-excerpt { flex: 1 1 auto; }
.card-blog-1 .card-2-bottom { margin-top: auto; }
/* placeholder thumb when an article has no image */
.post-thumb.no-img { display:flex; align-items:center; justify-content:center; background: rgba(151,119,250,0.08); font-size: 40px; }

/* article body content spacing */
.single-content > p:first-child { margin-top: 0; }
.single-content img { max-width: 100%; height: auto; border-radius: 12px; }
.single-content ul, .single-content ol { margin: 0 0 1.4rem 1.4rem; }
.single-content li { margin-bottom: .5rem; }

/* active category tag (filter + sidebar) */
.btn-tags-sm.active { background: var(--hb-brand); color: #fff; }
.widget-categories ul li a.text-brand,
a.text-brand { color: var(--hb-brand) !important; font-weight: 600; }

/* sidebar latest-news emoji fallback thumb */
.post-list-small-item .thumb .thumb-emoji {
  display:flex; align-items:center; justify-content:center;
  width:50px; height:50px; border-radius:8px;
  background: rgba(151,119,250,0.10); font-size:22px;
}

/* the "meta pills" on the single header */
.article-meta-pills { display:flex; gap:22px; flex-wrap:wrap; justify-content:center; color: var(--hb-muted); font-size:15px; }
.article-meta-pills span { display:inline-flex; align-items:center; gap:6px; }

/* ── Dark mode ── */
:root[data-theme="dark"] .breacrumb-cover { background-color: var(--hb-surface); }
:root[data-theme="dark"] .breadcrumbs li,
:root[data-theme="dark"] .breadcrumbs li a { color: var(--hb-muted); }
:root[data-theme="dark"] .breadcrumbs li a:hover { color: var(--hb-brand); }

:root[data-theme="dark"] .card-blog-1 {
  background: var(--hb-card);
  border-color: var(--hb-border);
}
:root[data-theme="dark"] .card-blog-1 h3.post-title a { color: var(--hb-heading); }
:root[data-theme="dark"] .card-blog-1 h3.post-title a:hover { color: var(--hb-brand); }
:root[data-theme="dark"] .card-blog-1 .post-excerpt,
:root[data-theme="dark"] .post-meta.text-muted,
:root[data-theme="dark"] .text-muted { color: var(--hb-muted) !important; }

/* sidebar widgets */
:root[data-theme="dark"] .sidebar-shadow {
  background-color: var(--hb-card);
  border-color: var(--hb-border);
}
/* .widget-categories sets #f4f6fa !important — override needs !important too */
:root[data-theme="dark"] .widget-categories { background-color: var(--hb-card) !important; }
:root[data-theme="dark"] .widget-categories li + li { border-top-color: var(--hb-border); }
:root[data-theme="dark"] .widget-categories li span.count { color: var(--hb-heading); }
:root[data-theme="dark"] .sidebar-title,
:root[data-theme="dark"] .small-heading { color: var(--hb-heading); }
:root[data-theme="dark"] .widget-categories ul li a,
:root[data-theme="dark"] .ul-lists li a,
:root[data-theme="dark"] .post-list-small-item h5 { color: var(--hb-text); }
:root[data-theme="dark"] .widget-categories ul li a:hover,
:root[data-theme="dark"] .ul-lists li a:hover { color: var(--hb-brand); }
:root[data-theme="dark"] .search-form form input {
  background: var(--hb-surface);
  border-color: var(--hb-border);
  color: var(--hb-text);
}
:root[data-theme="dark"] .search-form form button { color: var(--hb-muted); }

/* single body */
:root[data-theme="dark"] .single-body p,
:root[data-theme="dark"] .single-content,
:root[data-theme="dark"] .single-content p,
:root[data-theme="dark"] .single-content li,
:root[data-theme="dark"] .single-body .excerpt p { color: var(--hb-text); }
:root[data-theme="dark"] .single-body blockquote {
  background: var(--hb-surface);
  border-color: var(--hb-brand);
  color: var(--hb-text);
}

/* pagination numbers */
:root[data-theme="dark"] .paginations .pager li a { color: var(--hb-text); }
:root[data-theme="dark"] .paginations .pager li a.pager-number.active,
:root[data-theme="dark"] .paginations .pager li a:hover { color: #fff; }

/* related cards on single */
:root[data-theme="dark"] .card-grid-3 h6 a { color: var(--hb-heading); }
:root[data-theme="dark"] .card-grid-3 h6 a:hover { color: var(--hb-brand); }

/* =============================================================================
   INTERNSHIPS  (job-list template)
   ============================================================================= */
/* apply button + email-reveal helper */
.internship-apply-btn { appearance:none; -webkit-appearance:none; border:0; cursor:pointer; font-family:inherit; }
.internship-apply-btn.is-revealed { white-space: normal; word-break: break-word; }
.internship-apply-btn .copy-icon {
  width:14px; height:14px; flex:0 0 auto; display:inline-block; margin-left:6px;
  background-color: currentColor;
  -webkit-mask: url('/assets/icons/copy.svg') no-repeat center / contain;
  mask: url('/assets/icons/copy.svg') no-repeat center / contain;
  opacity:.9;
}
/* logo fallback letter when a program has no uploaded logo */
.card-job-top--image .logo-fallback {
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%; font-family:"Montserrat",sans-serif; font-weight:700;
  font-size:22px; color:#fff; background:var(--hb-brand); border-radius:12px;
}
/* subscribe widget messages */
.subscribe-msg { margin:10px 0 0; font-size:14px; }
.subscribe-msg.success { color:#00c070; }
.subscribe-msg.error { color:#f87171; }
.subscribe-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ── Dark mode ── */
:root[data-theme="dark"] .box-head-single { background-color: var(--hb-surface); }
:root[data-theme="dark"] .box-shadow-bdrd-15 {
  background-color: var(--hb-card);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
:root[data-theme="dark"] .input-search-job { color: var(--hb-text); }
:root[data-theme="dark"] .input-search-job::placeholder { color: var(--hb-muted); }
:root[data-theme="dark"] .card-job-top--info-heading a { color: var(--hb-heading); }
:root[data-theme="dark"] .card-job-top--info-heading a:hover { color: var(--hb-brand); }
:root[data-theme="dark"] .card-job-description { color: var(--hb-muted); }
:root[data-theme="dark"] .medium-heading,
:root[data-theme="dark"] .font-semibold,
:root[data-theme="dark"] .box-filters-job strong { color: var(--hb-heading); }
:root[data-theme="dark"] .text-small,
:root[data-theme="dark"] .text-sortby,
:root[data-theme="dark"] .text-body-999 { color: var(--hb-muted); }
:root[data-theme="dark"] .sidebar-with-bg { background: rgba(151,119,250,0.16); }
:root[data-theme="dark"] .sidebar-with-bg p { color: var(--hb-text); }
:root[data-theme="dark"] .input-bg-white {
  background: var(--hb-surface) !important;
  color: var(--hb-text);
  border-color: var(--hb-border) !important;
}
:root[data-theme="dark"] .input-bg-white::placeholder { color: var(--hb-muted); }
/* category tag pill uses .btn-small colour #37404e — too dark on the dark pill bg */
:root[data-theme="dark"] .btn-small.background-6 { color: var(--hb-text); }
