/* Shared site header, footer + buttons – LY HAW HR SOLUTION design. Used by every page layout. */
:root {
    --lh-gold: #C49A0C;
    --lh-gold-dark: #A9840A;
    --lh-gold-soft: #FBF3DC;
    --lh-cream: #FAF6EE;
    --lh-soft: #F7F5F0;
    --lh-ink: #14213D;
    --lh-text: #2B3445;
    --lh-muted: #6B7280;
    --lh-line: #E8E4DA;
    --lh-navy: #13223F;
    --lh-navy-2: #0F1C34;
    --lh-radius: 12px;
}

/* ---------- Buttons ---------- */
.lh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
    border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap; cursor: pointer;
}
.lh-btn-gold { background: var(--lh-gold); color: #fff !important; }
.lh-btn-gold:hover { background: var(--lh-gold-dark); }
.lh-btn-outline { background: #fff; color: var(--lh-ink) !important; border-color: var(--lh-line); }
.lh-btn-outline:hover { border-color: var(--lh-gold); color: var(--lh-gold-dark) !important; }
.lh-btn-white { background: #fff; color: var(--lh-ink) !important; border-color: var(--lh-line); }
.lh-btn-white:hover { border-color: var(--lh-gold); }

/* ---------- Header ---------- */
.lh-header { background: #fff; border-bottom: 1px solid var(--lh-line); position: sticky; top: 0; z-index: 1030; }
.lh-nav { padding: 10px 0; }
/* Full-width navbar and account pages (profile, company) with side gutters that grow on wider screens.
   Same gutters on both so the page content lines up with the logo and the header buttons. */
.lh-nav-inner, .lh-fluid { padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .lh-nav-inner, .lh-fluid { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1200px) { .lh-nav-inner, .lh-fluid { padding-left: 40px; padding-right: 40px; } }
.lh-brand { display: flex; align-items: center; gap: 8px; }
.lh-brand img { height: 46px; width: 46px; object-fit: cover; border-radius: 6px; }
.lh-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.lh-brand-text strong { color: var(--lh-gold-dark); font-size: 15px; font-weight: 800; letter-spacing: .3px; }
.lh-brand-text small { color: var(--lh-gold); font-size: 10.5px; }
.lh-menu .nav-link { color: var(--lh-text) !important; font-weight: 500; font-size: 18px; padding: 8px 14px !important; }
.lh-menu .nav-link:hover, .lh-menu .nav-link.active { color: var(--lh-gold-dark) !important; }
.lh-actions { display: flex; align-items: center; gap: 14px; }
.lh-lang, .lh-link { color: var(--lh-text) !important; font-size: 14px; font-weight: 500; }
.lh-lang:hover, .lh-link:hover { color: var(--lh-gold-dark) !important; }
.lh-toggler { border: 1px solid var(--lh-line); color: var(--lh-ink); padding: 6px 10px; }
.lh-header .dropdown-menu { border-color: var(--lh-line); border-radius: 10px; font-size: 14px; }
@media (max-width: 991px) {
    .lh-menu { padding: 10px 0; }
    .lh-actions { flex-wrap: wrap; padding-bottom: 12px; }
}

/* Keep the header looking the same on old pages (style.css sets * { font-family } and a { color: black !important }) */
.lh-header, .lh-header *:not(.fa) { font-family: 'KantumruyPro', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.lh-header { font-size: 15px; color: var(--lh-text); -webkit-font-smoothing: antialiased; }
.lh-header a, .lh-header a:hover { text-decoration: none; }
.lh-header .navbar { padding: 10px 0; }
.lh-header .navbar-brand { margin-right: 16px; }
.lh-header .dropdown-item { color: var(--lh-text) !important; font-size: 14px; padding: 8px 18px; background: none; border: 0; width: 100%; text-align: left; }
.lh-header .dropdown-item:hover { background: var(--lh-gold-soft); color: var(--lh-gold-dark) !important; }
.lh-header .lh-btn { line-height: 1.4; }

/* ---------- Footer ---------- */
.lh-footer { background: var(--lh-navy-2); color: #A9B3C6; padding: 56px 0 24px; font-size: 13.5px; }
.lh-footer a { color: #C9D1E0; }
.lh-footer a:hover { color: #E0B53A; }
.lh-footer h6 { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.lh-footer ul { list-style: none; padding: 0; margin: 0; }
.lh-footer li { margin-bottom: 10px; }
.lh-footer-logo { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 8px 14px 8px 8px; }
.lh-footer-logo img { height: 42px; width: 42px; object-fit: cover; }
.lh-footer-logo span { display: flex; flex-direction: column; line-height: 1.2; }
.lh-footer-logo strong { color: var(--lh-gold-dark); font-size: 13.5px; font-weight: 800; }
.lh-footer-logo small { color: var(--lh-gold); font-size: 10px; }
.lh-footer-tag { color: #E0B53A; font-weight: 600; margin: 16px 0 8px; }
.lh-footer-about { max-width: 320px; }
.lh-social { display: flex; gap: 18px; margin-top: 14px; }
.lh-social i { font-size: 11px; }
.lh-contact i { width: 18px; color: #E0B53A; }
.lh-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
.lh-footer-legal a + a { margin-left: 18px; }


/* Keep the footer looking the same on old pages */
.lh-footer, .lh-footer *:not(.fa) { font-family: 'KantumruyPro', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.lh-footer { -webkit-font-smoothing: antialiased; line-height: 1.5; }
.lh-footer a { color: #C9D1E0 !important; text-decoration: none; }
.lh-footer a:hover { color: #E0B53A !important; }
.lh-footer .lh-footer-logo, .lh-footer .lh-footer-logo:hover { color: inherit !important; }
.lh-footer p { margin-bottom: 8px; }
@media (max-width: 575px) { .lh-footer-legal a + a { margin-left: 12px; } }

/* ---------- Footer polish (full width, icons, hover states) ---------- */
.lh-footer { position: relative; background: radial-gradient(800px 320px at 0% 0%, rgba(224, 181, 58, .10) 0%, rgba(224, 181, 58, 0) 70%), var(--lh-navy-2); }
.lh-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--lh-gold-dark), #E0B53A, var(--lh-gold-dark)); }
.lh-footer-logo { transition: box-shadow .2s; }
.lh-footer-logo:hover { box-shadow: 0 0 0 3px rgba(224, 181, 58, .35); }
/* Column headings: short gold accent */
.lh-footer h6 { position: relative; padding-bottom: 12px; margin-bottom: 18px; }
.lh-footer h6::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; border-radius: 2px; background: #E0B53A; }
/* Link lists: small arrow slides in on hover */
.lh-footer ul:not(.lh-contact) a { display: inline-flex; align-items: center; transition: color .15s, transform .15s; }
.lh-footer ul:not(.lh-contact) a::before { content: "\f105"; font-family: FontAwesome; width: 0; overflow: hidden; opacity: 0; color: #E0B53A; transition: width .15s, opacity .15s; }
.lh-footer ul:not(.lh-contact) a:hover::before { width: 12px; opacity: 1; }
/* Social: round icon buttons */
.lh-social { gap: 10px; margin-top: 18px; }
.lh-social a {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, border-color .2s, transform .2s;
}
.lh-social a i { font-size: 16px; }
.lh-footer .lh-social a:hover { background: #E0B53A; border-color: #E0B53A; color: var(--lh-navy-2) !important; transform: translateY(-2px); }
/* Contact: icons in round badges */
.lh-contact li { display: flex; align-items: center; gap: 12px; }
.lh-contact i {
    width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(224, 181, 58, .12); font-size: 14px;
}
.lh-contact a { overflow-wrap: anywhere; }
.lh-footer .lh-footer-about-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 20px; border-radius: 999px;
    border: 1px solid rgba(224, 181, 58, .55); color: #E0B53A !important; font-weight: 600; transition: background .2s, color .2s;
}
.lh-footer .lh-footer-about-btn:hover { background: #E0B53A; color: var(--lh-navy-2) !important; }
.lh-footer-about-btn i { font-size: 12px; }
/* Bottom bar */
.lh-footer-bottom { align-items: center; }
.lh-footer-legal a { position: relative; }
@media (min-width: 992px) { .lh-footer .row > [class*="col-lg-2"] { padding-left: 32px; } }

/* ---------- Header + footer font sizes (responsive) ---------- */
/* KantumruyPro Regular (400) for menu, language/login links, dropdowns and footer text */
.lh-menu .nav-link, .lh-lang, .lh-link, .lh-header .dropdown-item,
.lh-footer, .lh-footer a, .lh-footer p, .lh-footer li, .lh-footer span { font-weight: 400; }
/* Sizes are in px, not rem: pages on user_layout load Semantic UI, which sets html { font-size: 14px }
   and would make rem sizes smaller there than on the home page. */
/* Desktop: menu 18px · footer headings 18px · footer text 16px · footer bottom 14px */
.lh-footer { font-size: 16px; }
.lh-footer h6 { font-size: 18px !important; }
.lh-footer-bottom { font-size: 14px; }
/* Small desktop / tablet: step down so the menu stays on one line */
@media (max-width: 1199px) {
    .lh-menu .nav-link { font-size: 16px; }
}
/* Small phones: shorter brand name (was only in home.css, so other pages showed it bigger) */
@media (max-width: 575px) {
    .lh-brand-text strong { font-size: 13px; }
}
/* Phones */
@media (max-width: 767px) {
    .lh-footer { font-size: 15px; }
    .lh-footer h6 { font-size: 16px !important; }
    .lh-footer-bottom { font-size: 13px; }
}

/* ---------- Account dropdown ---------- */
.lh-account-toggle { display: inline-flex !important; align-items: center; gap: 8px; }
.lh-account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-account-avatar {
    width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--lh-navy); color: #E0B53A !important;
    font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.lh-header .lh-account-menu { min-width: 260px; padding: 8px; border-radius: 14px; box-shadow: 0 16px 36px rgba(20, 33, 61, .14); margin-top: 10px; }
.lh-account-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--lh-line); }
.lh-account-head .lh-account-avatar { width: 40px; height: 40px; font-size: 16px; }
.lh-account-head div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lh-account-head strong { color: var(--lh-ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-account-head small { color: var(--lh-muted); font-size: 12px; }
.lh-header .lh-account-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 9px 12px; }
.lh-header .lh-account-menu .dropdown-item i { width: 16px; text-align: center; color: var(--lh-gold-dark); }
.lh-header .lh-account-menu .dropdown-item.active { background: var(--lh-gold-soft); color: var(--lh-gold-dark) !important; font-weight: 600; }
.lh-header .lh-account-menu .dropdown-divider { margin: 6px 4px; border-color: var(--lh-line); }
.lh-header .lh-account-menu .lh-logout, .lh-header .lh-account-menu .lh-logout i { color: #C53030 !important; }
.lh-header .lh-account-menu .lh-logout:hover { background: #FFF5F5; }
.lh-header .lh-account-menu form { margin: 0; }
@media (max-width: 991px) { .lh-header .lh-account-menu { position: static; box-shadow: none; border: 1px solid var(--lh-line); } }

/* ---------- Header actions: language pill, Login / Register / Post a Job pills ---------- */
/* All header actions share one height and fully rounded ends */
.lh-btn-pill { border-radius: 999px; padding-left: 24px; padding-right: 24px; min-height: 42px; }
.lh-header .lh-btn-outline.lh-btn-pill { border-color: #D9D5CB; }
.lh-lang-pill, .lh-header .lh-account-toggle {
    display: inline-flex !important; align-items: center; gap: 8px; min-height: 38px;
    padding: 4px 14px 4px 6px; border: 1px solid var(--lh-line); border-radius: 999px; background: #fff;
    transition: border-color .15s, color .15s;
}
.lh-lang-pill { padding-left: 6px; }
.lh-lang-pill:hover, .lh-lang-switch.show .lh-lang-pill,
.lh-header .lh-account-toggle:hover, .lh-account.show .lh-account-toggle { border-color: var(--lh-gold); }
/* Flag fills a full circle. The PNGs have transparent bands top and bottom, so they are zoomed to cover. */
.lh-flag {
    display: inline-block; width: 24px; height: 24px; flex: none; border-radius: 50%; overflow: hidden;
    background: #fff center / cover no-repeat; box-shadow: 0 0 0 1px rgba(20, 33, 61, .1);
}
.lh-flag-kh { background-image: url(/img/lang-kh.png); background-size: auto 160%; }
.lh-flag-en { background-image: url(/img/lang-en.png); background-size: auto 160%; }
.lh-flag-zh { background-image: url(/img/lang-zh.svg); background-position: 30% center; }
.lh-header .lh-lang-menu { min-width: 170px; padding: 6px; border-radius: 12px; box-shadow: 0 12px 28px rgba(20, 33, 61, .12); margin-top: 8px; }
.lh-header .lh-lang-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 8px 12px; }
.lh-header .lh-lang-menu .dropdown-item.active { background: var(--lh-gold-soft); color: var(--lh-gold-dark) !important; font-weight: 600; }
@media (max-width: 991px) { .lh-header .lh-lang-menu { position: absolute; } }

/* Header: keep menu items on one line when the account name takes space */
.lh-menu .nav-link, .lh-lang, .lh-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399px) {
    .lh-menu .nav-link { padding: 8px 10px !important; }
    .lh-actions { gap: 10px; }
    .lh-account-name { max-width: 110px; }
}

/* ---------- Chinese pages (body.lang-zh) ---------- */
/* Latin text keeps KantumruyPro; Chinese characters use the system's Simplified Chinese font */
.lang-zh, .lang-zh *:not(.fa):not(.icon):not(.mce-ico),
.lang-zh .lh-header *:not(.fa), .lang-zh .lh-footer *:not(.fa) {
    font-family: 'KantumruyPro', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
    letter-spacing: 0;
}
