/* Job list (/job) and job detail pages – builds on site.css and home.css */

/* ---------- Banner ---------- */
.lh-banner {
    position: relative; overflow: hidden;
    background: var(--lh-navy); color: #C9D1E0; padding: 34px 0 40px;
    border-bottom: 3px solid var(--lh-gold);
}
.lh-banner::after {
    content: ""; position: absolute; right: -60px; top: -40px; width: 380px; height: 140px;
    background: linear-gradient(100deg, transparent 20%, rgba(226, 188, 82, .55) 50%, transparent 80%);
    transform: rotate(-18deg); pointer-events: none;
}
.lh-banner .container { position: relative; z-index: 1; }
.lh-banner h1 { color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.6px; margin: 6px 0 12px; }
.lang-km .lh-banner h1 { font-size: 32px; line-height: 1.4; letter-spacing: 0; }
.lh-banner-lead { margin: 0; font-size: 15.5px; }
.lh-banner-lead strong { color: #fff; }
.lh-crumbs { font-size: 13px; margin-bottom: 18px; color: #A9B3C6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lh-crumbs a { color: #fff; }
.lh-crumbs a:hover { color: #E0B53A; }
.lh-crumbs i { font-size: 11px; }
.lh-crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Search bar under the banner ---------- */
.lh-searchbar { background: var(--lh-cream); padding: 22px 0 6px; }
.lh-searchbar .lh-search { margin-top: 0; }
.lh-search-5 { grid-template-columns: 1.3fr 1fr 1fr 1fr auto; }
@media (max-width: 991px) { .lh-search-5 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Results area ---------- */
.lh-results { background: var(--lh-cream); padding: 34px 0 64px; }

.lh-filter-toggle { width: 100%; margin-bottom: 12px; }
.lh-filters { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 22px 22px 24px; }
@media (min-width: 992px) { .lh-filters { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.lh-filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--lh-line); }
.lh-filters-head h2 { font-size: 18px; margin: 0; }
.lh-filters-head a { color: var(--lh-gold-dark); font-size: 13px; font-weight: 600; }
.lh-filter-group { padding: 18px 0; border-bottom: 1px solid var(--lh-line); }
.lh-filter-group:last-of-type { margin-bottom: 18px; }
.lh-filter-group h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.lh-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--lh-text); margin: 0 0 10px; cursor: pointer; }
.lh-check input { width: 16px; height: 16px; accent-color: var(--lh-gold); flex: none; margin: 0; }
.lh-check span { flex: 1; min-width: 0; }
.lh-check em { font-style: normal; color: var(--lh-muted); font-size: 12px; }
.lh-check:hover span { color: var(--lh-gold-dark); }
.lh-check.is-extra { display: none; }
.lh-filter-group.is-open .lh-check.is-extra { display: flex; }
.lh-show-more { background: none; border: 0; padding: 0; color: var(--lh-gold-dark); font-size: 13px; font-weight: 600; cursor: pointer; }

.lh-results-head h2 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.3px; }
.lh-results-head p { color: var(--lh-muted); font-size: 14px; margin-bottom: 18px; }
.lh-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.lh-sort { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--lh-muted); }
.lh-sort a { background: #fff; border: 1px solid var(--lh-line); border-radius: 8px; padding: 8px 16px; color: var(--lh-ink); font-weight: 600; font-size: 13.5px; }
.lh-sort a:hover { border-color: var(--lh-gold); }
.lh-sort a.is-active { border-color: var(--lh-ink); box-shadow: inset 0 0 0 1px var(--lh-ink); }
.lh-view { display: flex; gap: 8px; }
.lh-view button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--lh-line); background: #fff; color: var(--lh-gold-dark); cursor: pointer; }
.lh-view button.is-active { background: var(--lh-gold); border-color: var(--lh-gold); color: #fff; }

/* Job rows */
.lh-job-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lh-row-job {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px;
    background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 22px;
    transition: border-color .15s, box-shadow .15s;
}
.lh-row-job:hover { border-color: #D9CFB4; box-shadow: 0 10px 28px rgba(20, 33, 61, .07); }
.lh-row-job .lh-logo-lg { width: 56px; height: 56px; }
.lh-row-main h3 { font-size: 18px; margin: 0 0 4px; line-height: 1.35; }
.lh-row-main h3 a { color: var(--lh-ink); }
.lh-row-main h3 a:hover { color: var(--lh-gold-dark); }
.lh-row-company { margin: 0 0 4px; font-size: 14px; }
.lh-row-company a { color: var(--lh-muted); }
.lh-row-company a:hover { color: var(--lh-gold-dark); }
.lh-row-meta, .lh-row-dates { color: var(--lh-muted); font-size: 13px; margin: 0; display: flex; flex-wrap: wrap; }
.lh-row-meta span + span::before, .lh-row-dates > span + span::before { content: "·"; margin: 0 8px; color: #B4B9C2; }
.lh-row-cat { color: var(--lh-gold-dark); font-size: 12.5px; font-weight: 600; margin: 14px 0 4px; }
.lh-row-dates { font-size: 12.5px; }
.lh-row-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
.lh-row-salary { color: var(--lh-gold-dark); font-weight: 700; font-size: 15px; margin: 0; white-space: nowrap; }
.lh-row-side .lh-btn { padding: 11px 24px; }

/* Grid layout */
.lh-job-list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lh-job-list.is-grid .lh-row-job { grid-template-columns: 48px minmax(0, 1fr); }
.lh-job-list.is-grid .lh-row-job .lh-logo-lg { width: 48px; height: 48px; }
.lh-job-list.is-grid .lh-row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
@media (max-width: 767px) {
    .lh-job-list.is-grid { grid-template-columns: minmax(0, 1fr); }
    .lh-row-job { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; gap: 14px; }
    .lh-row-job .lh-logo-lg { width: 48px; height: 48px; }
    .lh-row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    .lh-view { display: none; }
}

.lh-empty-card { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 48px 24px; }
.lh-empty-card h3 { font-size: 18px; margin: 6px 0; }
.lh-empty-card p { margin-bottom: 18px; }

/* Paging */
.lh-paging { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.lh-paging p { margin: 0; color: var(--lh-muted); font-size: 13.5px; }
.lh-size select { border: 1px solid var(--lh-line); background: #fff; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: 13.5px; color: var(--lh-ink); font-family: inherit; cursor: pointer; }
.lh-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.lh-page { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--lh-line); border-radius: 8px; background: #fff; color: var(--lh-ink) !important; font-weight: 600; font-size: 13.5px; }
.lh-page:hover { border-color: var(--lh-gold); }
.lh-page.is-active { background: var(--lh-gold); border-color: var(--lh-gold); color: #fff !important; }
.lh-page.is-disabled { opacity: .45; pointer-events: none; }
.lh-page-wide { padding: 0 16px; }
.lh-page-gap { color: var(--lh-muted); padding: 0 2px; }

/* ---------- Job detail ---------- */
.lh-banner-job { padding-bottom: 34px; }
.lh-job-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.lh-logo-xl { width: 76px; height: 76px; border-radius: 12px; font-size: 28px; border-color: rgba(255, 255, 255, .2); }
.lh-job-hero h1 { font-size: 32px; margin: 0 0 6px; }
.lang-km .lh-job-hero h1 { font-size: 28px; }
.lh-job-hero-company { margin: 0 0 12px; font-size: 15px; }
.lh-job-hero-company a { color: #E0B53A; font-weight: 600; }
.lh-job-hero-company a:hover { color: #fff; }
.lh-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lh-chips li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: #E3E8F1; }
.lh-chips i { color: #E0B53A; margin-right: 4px; }
.lh-job-hero-side { text-align: right; }
.lh-job-hero-salary { color: #fff; font-size: 22px; font-weight: 700; margin: 0 0 12px; white-space: nowrap; }
.lh-btn-lg { padding: 13px 28px; font-size: 15px; }
@media (max-width: 991px) {
    .lh-job-hero { grid-template-columns: auto minmax(0, 1fr); }
    .lh-job-hero-side { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .lh-job-hero-salary { margin: 0; }
    .lh-job-hero h1 { font-size: 24px; }
    .lh-logo-xl { width: 60px; height: 60px; }
}

.lh-notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #EFE6CF; border-left: 4px solid var(--lh-gold); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.lh-notice > i { color: var(--lh-gold); font-size: 18px; }
.lh-notice > span { flex: 1; min-width: 220px; }
.lh-notice form { margin: 0; }

.lh-card { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 24px 26px; margin-bottom: 18px; }
.lh-card h2 { font-size: 18px; margin-bottom: 18px; }
.lh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
.lh-facts dt { color: var(--lh-muted); font-size: 12.5px; font-weight: 500; margin-bottom: 4px; }
.lh-facts dd { color: var(--lh-ink); font-size: 14.5px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.lh-facts-wide { grid-column: 1 / -1; }
.lh-lang-tag { display: inline-block; background: var(--lh-gold-soft); color: var(--lh-gold-dark); border-radius: 6px; padding: 3px 10px; font-size: 13px; margin: 0 6px 6px 0; }
@media (max-width: 575px) { .lh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lh-card { padding: 20px; } }

.lh-rich { font-size: 15px; line-height: 1.7; color: var(--lh-text); overflow-wrap: anywhere; }
.lh-rich ul, .lh-rich ol { padding-left: 22px; }
.lh-rich li { margin-bottom: 6px; }
.lh-rich img { max-width: 100%; height: auto; }
.lh-rich table { max-width: 100%; display: block; overflow-x: auto; }

.lh-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 575px) { .lh-contacts { grid-template-columns: minmax(0, 1fr); } }
.lh-contact-person { display: flex; gap: 12px; border: 1px solid var(--lh-line); border-radius: 10px; padding: 14px; }
.lh-contact-person > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13.5px; }
.lh-contact-person strong { color: var(--lh-ink); }
.lh-contact-person small { color: var(--lh-muted); margin-bottom: 4px; }
.lh-contact-person a { color: var(--lh-text); overflow-wrap: anywhere; }
.lh-contact-person a:hover { color: var(--lh-gold-dark); }
.lh-contact-person i { color: var(--lh-gold); width: 16px; }
.lh-avatar { position: relative; overflow: hidden; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--lh-navy); color: #E0B53A; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lh-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.lh-contact-person .lh-avatar { width: 48px; height: 48px; }

.lh-apply-card { position: relative; }
@media (min-width: 992px) { .lh-apply-card { position: sticky; top: 92px; } }
.lh-side-facts { margin: 0 0 18px; }
.lh-side-facts > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--lh-line); font-size: 14px; }
.lh-side-facts > div:first-child { padding-top: 0; }
.lh-side-facts dt { color: var(--lh-muted); font-weight: 500; }
.lh-side-facts dd { color: var(--lh-ink); font-weight: 600; margin: 0; }
.lh-company-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lh-company-top div { display: flex; flex-direction: column; min-width: 0; }
.lh-company-top strong { color: var(--lh-ink); font-size: 15px; }
.lh-company-top small { color: var(--lh-muted); font-size: 12.5px; }
.lh-company-loc { color: var(--lh-muted); font-size: 13.5px; margin-bottom: 14px; }
.lh-company-loc i { color: var(--lh-gold); margin-right: 4px; }

.lh-similar { margin-top: 30px; }

/* ---------- Companies page ---------- */
.lh-search-4 { grid-template-columns: 1.4fr 1fr 1fr auto; }
@media (max-width: 991px) { .lh-search-4 { grid-template-columns: minmax(0, 1fr); } }
.lh-company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1199px) { .lh-company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .lh-company-grid { grid-template-columns: minmax(0, 1fr); } }
.lh-co-card { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 22px; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.lh-co-card:hover { border-color: #D9CFB4; box-shadow: 0 10px 28px rgba(20, 33, 61, .07); }
.lh-co-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.lh-co-count { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.lh-co-count strong { color: var(--lh-gold-dark); font-size: 22px; font-weight: 800; }
.lh-co-count small { color: var(--lh-muted); font-size: 12px; }
.lh-co-card h3 { font-size: 16.5px; margin: 0 0 4px; line-height: 1.35; }
.lh-co-card h3 a { color: var(--lh-ink); }
.lh-co-card h3 a:hover { color: var(--lh-gold-dark); }
.lh-co-type { color: var(--lh-gold-dark); font-size: 12.5px; font-weight: 600; margin: 0 0 6px; }
.lh-co-loc { color: var(--lh-muted); font-size: 13px; margin: 0 0 18px; }
.lh-co-loc i { color: #A0A6B1; margin-right: 4px; }
.lh-co-actions { margin-top: auto; display: flex; gap: 10px; }
.lh-co-actions .lh-btn { flex: 1; padding: 10px 12px; }
/* Whole card opens the company detail page; one "View" action */
.lh-co-card { position: relative; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lh-co-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.lh-co-card:hover { border-color: var(--lh-gold); box-shadow: 0 14px 32px rgba(20, 33, 61, .09); transform: translateY(-3px); }
.lh-co-card:hover h3 a { color: var(--lh-gold-dark); }
.lh-co-actions .lh-btn i { font-size: 12px; transition: transform .15s; }
.lh-co-card:hover .lh-co-actions .lh-btn { background: var(--lh-gold-dark); }
.lh-co-card:hover .lh-co-actions .lh-btn i { transform: translateX(3px); }

/* ---------- Company detail ---------- */
.lh-save-box form { margin: 0; }
.lh-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.lh-btn-ghost:hover { border-color: #E0B53A; color: #E0B53A !important; }
/* Saved: white button with a red heart; on hover it offers "Remove" */
.lh-btn-saved { background: #fff; color: var(--lh-ink) !important; border-color: #fff; min-width: 150px; }
.lh-btn-saved i { color: #E0245E; }
.lh-btn-saved .lh-saved-off { display: none; }
.lh-btn-saved:hover, .lh-btn-saved:focus-visible { background: #FFF5F5; border-color: #F3CACA; color: #C53030 !important; }
.lh-btn-saved:hover .lh-saved-on, .lh-btn-saved:focus-visible .lh-saved-on { display: none; }
.lh-btn-saved:hover .lh-saved-off, .lh-btn-saved:focus-visible .lh-saved-off { display: inline; }
.lh-side-facts-stack > div { flex-direction: column; gap: 3px; }
.lh-side-facts-stack dd { font-weight: 500; overflow-wrap: anywhere; }
.lh-side-facts-stack dd a { color: var(--lh-ink); }
.lh-side-facts-stack dd a:hover { color: var(--lh-gold-dark); }
.lh-rich-inline p { margin: 0; }
.lh-results .lh-card + .lh-results-head { margin-top: 26px; }

/* ---------- Jobs by category (/category/{id}) ---------- */
.lh-cat-links { list-style: none; padding: 0; margin: 0; }
.lh-cat-links li + li { border-top: 1px solid var(--lh-line); }
.lh-cat-links a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--lh-text); font-size: 14px; }
.lh-cat-links a:hover { color: var(--lh-gold-dark); }
.lh-cat-links i { width: 18px; text-align: center; color: var(--lh-gold-dark); }
.lh-cat-links span { flex: 1; min-width: 0; }
.lh-cat-links em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--lh-gold-dark); background: var(--lh-gold-soft); border-radius: 999px; padding: 2px 9px; }

/* ---------- Full-width job pages (job list, category jobs, job detail) ----------
   Sections use .container-fluid.lh-fluid. On wide screens the sidebar keeps a fixed width
   and the main column takes the rest, so filters / side panels don't stretch. */
@media (min-width: 1400px) {
    .lh-results-row > aside { flex: 0 0 320px; max-width: 320px; }             /* filters (job list) */
    .lh-results-row > aside.col-lg-4 { flex-basis: 380px; max-width: 380px; }  /* side panel (detail, category) */
    .lh-results-row > [class*="col-lg-"]:not(aside) { flex: 1 1 0; max-width: none; min-width: 0; }
}
/* Grid view of the job list: more cards per row when there is room */
@media (min-width: 1600px) { .lh-job-list.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Company list: more company cards per row on wide screens */
@media (min-width: 1600px) { .lh-company-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
