/* ============================================================
   AL-HABIB REAL ESTATE — CAREERS PAGE CSS (English / LTR)
   Mirror of ar/careers.css with LTR adjustments.
   BEM prefix: mah-careers-*
   ============================================================ */

/* ── Design tokens ── */
:root {
  --careers-dark-blue:        #0c3144;
  --careers-nav-blue:         #103c55;
  --careers-mid-blue:         #16506e;
  --careers-gold-label:       #7f6f33;
  --careers-bg-page:          #f8fafc;
  --careers-input-bg:         #f1f5f9;
  --careers-border:           #dcdcdc;
  --careers-text-muted:       #606060;
  --careers-text-placeholder: #9a9a9a;
  --careers-white:            #ffffff;
  --careers-px:               96px;
  --careers-gap:              64px;
  --careers-filter-w:         294px;
  --careers-radius:           16px;
  --careers-radius-sm:        8px;
  --careers-transition:       0.3s ease;
}

/* ── Page wrapper ── */
.mah-careers-page {
  background: var(--careers-bg-page);
}

/* ============================================================
   BREADCRUMBS (LTR)
   ============================================================ */
.mah-careers-breadcrumbs {
  background-color: var(--careers-nav-blue);
  padding: 12px var(--careers-px);
  direction: ltr;
}

.mah-careers-breadcrumbs__inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.mah-careers-breadcrumbs__current {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #86b8d1;
  padding: 16px 8px;
  white-space: nowrap;
}

.mah-careers-breadcrumbs__sep {
  color: #86b8d1;
  opacity: 0.6;
  flex-shrink: 0;
}

.mah-careers-breadcrumbs__link {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #b4d2e1;
  text-decoration: none;
  padding: 16px 8px;
  opacity: 0.8;
  transition: opacity var(--careers-transition);
}

.mah-careers-breadcrumbs__link:hover {
  opacity: 1;
  color: #b4d2e1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.mah-careers-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #d4e1e9;
}

.mah-careers-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mah-careers-hero__bg img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(calc(-50% + 57px));
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.mah-careers-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.mah-careers-hero__title {
  position: absolute;
  left: 111px;
  top: 40%;
  transform: translateY(-40%);
  z-index: 3;
  font-family: 'Neco', 'Work Sans', system-ui, sans-serif;
  font-size: clamp(36px, 5.3vw, 76px);
  font-weight: 700;
  color: var(--careers-white);
  text-align: left;
  line-height: 1.25;
  letter-spacing: -2.5px;
  margin: 0;
  white-space: nowrap;
  direction: ltr;
}

/* ============================================================
   DECORATIVE PATTERN (inside hero, clipped by hero overflow:hidden)
   ============================================================ */
.mah-careers-deco-pattern {
  position: absolute;
  left: 0;
  top: 55%;
  width: 485px;
  height: 627px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 2;
}

.mah-careers-deco-pattern img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* ============================================================
   BODY / MAIN LAYOUT
   ============================================================ */
.mah-careers-body {
  background: var(--careers-bg-page);
  padding-bottom: 48px;
}

.mah-careers-main {
  display: flex;
  flex-direction: row;
  gap: var(--careers-gap);
  padding: 0 var(--careers-px);
  align-items: flex-start;
  direction: ltr;
}

/* Sidebar — first in DOM → appears on LEFT in LTR */
.mah-careers-sidebar {
  width: var(--careers-filter-w);
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  padding-top: 128px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  overflow: visible;
}

/* Listing — second in DOM → appears on RIGHT in LTR */
.mah-careers-listing {
  flex: 1;
  min-width: 0;
  padding-top: 80px;
}

/* ============================================================
   SEARCH INPUT
   ============================================================ */
.mah-careers-search {
  width: 100%;
}

.mah-careers-search__inner {
  width: 100%;
  min-height: 48px;
  background: var(--careers-input-bg);
  border: 1px solid var(--careers-border);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  direction: ltr;
  transition: border-color var(--careers-transition);
}

.mah-careers-search__inner:focus-within {
  border-color: #a0b0bc;
}

.mah-careers-search__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--careers-text-muted);
}

.mah-careers-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--careers-text-muted);
  text-align: left;
  direction: ltr;
}

.mah-careers-search__input::placeholder {
  color: var(--careers-text-placeholder);
  font-size: 16px;
}

/* ============================================================
   FILTER GROUPS
   ============================================================ */
.mah-careers-filters {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mah-careers-filters__title {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--careers-gold-label);
  line-height: 1.25;
  white-space: nowrap;
  margin: 0 0 16px 0;
  text-align: left;
  direction: ltr;
}

.mah-careers-filter-groups {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mah-careers-filter-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  align-items: flex-start;
}

.mah-careers-filter-group__label {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--careers-text-placeholder);
  text-align: left;
  padding: 0 8px;
  direction: ltr;
  white-space: nowrap;
  margin: 0;
  line-height: normal;
}

.mah-careers-select-wrap {
  width: 100%;
  position: relative;
}

.mah-careers-select {
  width: 100%;
  height: 56px;
  background: var(--careers-input-bg);
  border: none;
  border-radius: var(--careers-radius-sm);
  padding: 0 44px 0 16px;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--careers-text-muted);
  direction: ltr;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  transition: background var(--careers-transition);
}

.mah-careers-select:hover {
  background: #e9eef4;
}

.mah-careers-select:focus {
  background: #e5ecf3;
}

.mah-careers-select-caret {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--careers-text-muted);
  width: 24px;
  height: 24px;
}

/* ============================================================
   JOB CARDS
   ============================================================ */
.mah-careers-card {
  border-bottom: 2px solid var(--careers-border);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  direction: ltr;
  cursor: pointer;
  transition: background var(--careers-transition);
  text-decoration: none;
  color: inherit;
}

.mah-careers-card:last-of-type {
  border-bottom: none;
}

.mah-careers-card:hover {
  background: rgba(16, 60, 85, 0.03);
}

.mah-careers-card__details {
  flex: 1;
  min-width: 0;
  padding: 24px 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  border-radius: var(--careers-radius);
}

.mah-careers-card__title-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.mah-careers-card__title {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--careers-dark-blue);
  text-align: left;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0;
  direction: ltr;
  width: 100%;
}

.mah-careers-card__tags {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.mah-careers-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  background: var(--careers-input-bg);
  border-radius: 9999px;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--careers-text-muted);
  white-space: nowrap;
  direction: ltr;
  line-height: normal;
}

.mah-careers-card__desc {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--careers-mid-blue);
  text-align: left;
  line-height: 1.5;
  direction: ltr;
  margin: 0;
  width: 100%;
}

/* ============================================================
   LOAD MORE
   ============================================================ */
.mah-careers-load-more {
  background: var(--careers-bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--careers-px);
}

.mah-careers-load-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--careers-border);
  border-radius: var(--careers-radius-sm);
  padding: 16px 32px;
  background: transparent;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--careers-text-muted);
  cursor: pointer;
  transition: border-color var(--careers-transition), color var(--careers-transition);
  box-shadow: 0 1px 2px rgba(35, 47, 55, 0.05);
  text-decoration: none;
  direction: ltr;
}

.mah-careers-load-more__btn:hover {
  border-color: #aaa;
  color: #444;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.mah-careers-empty {
  text-align: left;
  padding: 48px 0;
  color: var(--careers-text-placeholder);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 18px;
  direction: ltr;
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --careers-px: 64px;
    --careers-gap: 48px;
    --careers-filter-w: 260px;
  }
}

@media (max-width: 1024px) {
  :root {
    --careers-px: 40px;
    --careers-gap: 32px;
    --careers-filter-w: 240px;
  }
  .mah-careers-card__title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  :root { --careers-px: 24px; }
  .mah-careers-deco-pattern {
    display: none;
  }
  .mah-careers-main {
    flex-direction: column;
    gap: 24px;
  }
  .mah-careers-sidebar {
    width: 100%;
    position: static;
    padding-top: 32px;
    padding-bottom: 0;
    gap: 24px;
  }
  .mah-careers-listing {
    padding-top: 0;
    width: 100%;
  }
  .mah-careers-hero__title {
    left: var(--careers-px);
    white-space: normal;
    max-width: calc(100% - var(--careers-px) * 2);
  }
}

@media (max-width: 480px) {
  :root { --careers-px: 16px; }
  .mah-careers-hero {
    height: 300px;
  }
  .mah-careers-card__title {
    font-size: 22px;
  }
  .mah-careers-card {
    padding: 16px;
  }
  .mah-careers-card__details {
    padding: 16px 0 16px 16px;
    gap: 20px;
  }
}
