/* About (/about) and Policy (/policy) pages – builds on site.css, home.css and jobs.css (banner) */

/* ---------- About: intro ---------- */
.lh-intro h2 { font-size: 30px; letter-spacing: -.4px; margin-bottom: 16px; }
.lh-intro p { color: var(--lh-text); font-size: 15.5px; line-height: 1.75; }
.lh-intro p strong { color: var(--lh-gold-dark); }
.lh-intro-card {
    background: var(--lh-navy); color: #C9D1E0; border-radius: var(--lh-radius); padding: 28px;
    border-bottom: 3px solid var(--lh-gold); height: 100%;
}
.lh-intro-card h3 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.lh-intro-card ul { list-style: none; padding: 0; margin: 0; }
.lh-intro-card li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14.5px; }
.lh-intro-card li:first-child { border-top: 0; padding-top: 0; }
.lh-intro-card li i { color: #E0B53A; width: 18px; margin-top: 4px; flex: none; }
.lh-intro-card li strong { color: #fff; display: block; font-weight: 600; }

/* ---------- About: mission / vision / values cards ---------- */
.lh-card {
    background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius);
    padding: 24px; height: 100%; transition: border-color .15s, box-shadow .15s;
}
.lh-card:hover { border-color: var(--lh-gold); box-shadow: 0 10px 26px rgba(20, 33, 61, .07); }
.lh-card-icon {
    width: 46px; height: 46px; border-radius: 10px; background: var(--lh-gold-soft); color: var(--lh-gold-dark);
    display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px;
}
.lh-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; }
.lh-card p { color: var(--lh-muted); font-size: 14px; line-height: 1.65; margin: 0; }
.lh-card ul { color: var(--lh-muted); font-size: 14px; padding-left: 18px; margin: 10px 0 0; }
.lh-card li { margin-bottom: 4px; }

/* ---------- About: how it works ---------- */
.lh-steps { list-style: none; padding: 0; margin: 0; counter-reset: lh-step; }
.lh-steps li { position: relative; padding: 0 0 18px 50px; counter-increment: lh-step; }
.lh-steps li::before {
    content: counter(lh-step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
    background: var(--lh-gold); color: #fff; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.lh-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--lh-line);
}
.lh-steps strong { display: block; color: var(--lh-ink); font-size: 15px; margin-bottom: 2px; }
.lh-steps span { color: var(--lh-muted); font-size: 14px; }
.lh-steps-title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 20px; }
.lh-steps-title i { color: var(--lh-gold-dark); }

/* ---------- About: contact ---------- */
.lh-contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lh-contact-item {
    display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff;
    border: 1px solid var(--lh-line); border-radius: var(--lh-radius); min-width: 0;
}
.lh-contact-item i { color: var(--lh-gold-dark); font-size: 20px; margin-bottom: 8px; }
.lh-contact-item small { color: var(--lh-muted); font-size: 12.5px; }
.lh-contact-item strong, .lh-contact-item a { color: var(--lh-ink) !important; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.lh-contact-item a:hover { color: var(--lh-gold-dark) !important; }
@media (max-width: 991px) { .lh-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .lh-contact-grid { grid-template-columns: 1fr; } }

/* ---------- Policy page ---------- */
.lh-policy { padding: 48px 0 64px; background: var(--lh-soft); }
.lh-toc {
    position: sticky; top: 90px; background: #fff; border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius); padding: 20px;
}
.lh-toc h6 { color: var(--lh-ink); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.lh-toc h6 + ol { margin-bottom: 18px; }
.lh-toc ol { padding-left: 20px; margin: 0; font-size: 13.5px; }
.lh-toc li { margin-bottom: 6px; color: var(--lh-muted); }
.lh-toc a { color: var(--lh-text); }
.lh-toc a:hover { color: var(--lh-gold-dark); }
.lh-policy-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.lh-doc {
    background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius);
    padding: 36px 40px; margin-bottom: 24px; scroll-margin-top: 90px;
}
.lh-doc-head { border-bottom: 1px solid var(--lh-line); padding-bottom: 18px; margin-bottom: 8px; }
.lh-doc-head h2 { font-size: 26px; margin-bottom: 6px; letter-spacing: -.3px; }
.lh-doc-head p { color: var(--lh-muted); margin: 0; font-size: 13.5px; }
.lh-doc section { padding-top: 22px; scroll-margin-top: 90px; }
.lh-doc h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.45; }
.lh-doc p, .lh-doc li { color: var(--lh-text); font-size: 14.5px; line-height: 1.75; }
.lh-doc ul { padding-left: 20px; margin-bottom: 12px; }
.lh-doc li { margin-bottom: 4px; }
.lh-doc li strong { color: var(--lh-ink); }
.lh-doc a { color: var(--lh-gold-dark); font-weight: 600; }
.lh-note {
    background: var(--lh-gold-soft); border-left: 3px solid var(--lh-gold); border-radius: 8px;
    padding: 14px 16px; color: var(--lh-ink); font-size: 14px; margin: 12px 0;
}
.lh-note i { color: var(--lh-gold-dark); margin-right: 6px; }
@media (max-width: 991px) { .lh-toc { position: static; margin-bottom: 24px; } }
@media (max-width: 575px) {
    .lh-doc { padding: 24px 18px; }
    .lh-intro h2, .lh-doc-head h2 { font-size: 22px; }
}

/* ---------- Khmer type scale for these pages ---------- */
.lang-km .lh-intro h2, .lang-km .lh-doc-head h2 { font-size: 1.875rem; line-height: 2.5rem; }
.lang-km .lh-card h3, .lang-km .lh-intro-card h3, .lang-km .lh-steps-title,
.lang-km .lh-doc h3 { font-size: 1.125rem; line-height: 1.75rem; }
.lang-km .lh-intro p, .lang-km .lh-doc p, .lang-km .lh-doc li { font-size: 1rem; line-height: 1.85rem; }
.lang-km .lh-card p, .lang-km .lh-card li, .lang-km .lh-steps span, .lang-km .lh-intro-card li,
.lang-km .lh-toc ol, .lang-km .lh-note, .lang-km .lh-doc-head p { font-size: .875rem; line-height: 1.5rem; }
.lang-km .lh-contact-item small { font-size: .75rem; line-height: 1rem; }
@media (max-width: 767px) {
    .lang-km .lh-intro h2, .lang-km .lh-doc-head h2 { font-size: 1.5rem; line-height: 2.25rem; }
}

/* ======================================================================
   Full-width About + Policy (sections use .container-fluid.lh-fluid)
   Pages are wrapped in .lh-home, so section titles, "more" links and the
   training banner share the home page styles (home.css).
   ====================================================================== */

/* ---------- About ---------- */
.lh-about .lh-intro p { max-width: 760px; }
.lh-about .lh-intro-card {
    position: relative; overflow: hidden; border-radius: 16px; padding: 30px;
    background: radial-gradient(420px 220px at 100% 0%, rgba(224, 181, 58, .20) 0%, rgba(224, 181, 58, 0) 70%), var(--lh-navy);
}
.lh-about .lh-intro-card li i {
    width: 32px; height: 32px; margin-top: 0; border-radius: 50%; background: rgba(224, 181, 58, .14);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.lh-about .lh-card { border-radius: 16px; padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lh-about .lh-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20, 33, 61, .09); }
.lh-about .lh-card-icon { width: 54px; height: 54px; border-radius: 50%; font-size: 21px; transition: background .2s, color .2s; }
.lh-about .lh-card:hover .lh-card-icon { background: var(--lh-gold); color: #fff; }
.lh-about .lh-card .lh-btn { border-radius: 999px; margin-top: 6px; }
.lh-about .lh-steps li::before { box-shadow: 0 0 0 4px #FBEFC9; }
/* Contact tiles: round icon badge, lift on hover */
.lh-about .lh-contact-item { border-radius: 16px; padding: 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lh-about .lh-contact-item:hover { border-color: var(--lh-gold); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20, 33, 61, .09); }
.lh-about .lh-contact-item i {
    width: 46px; height: 46px; border-radius: 50%; background: var(--lh-gold-soft);
    display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 10px;
}

/* ---------- Policy ---------- */
/* Wide screens: table of contents keeps a fixed width, the document takes the rest */
@media (min-width: 1400px) {
    .lh-policy-row > .col-lg-3 { flex: 0 0 300px; max-width: 300px; }
    .lh-policy-row > .col-lg-9 { flex: 1 1 0; max-width: none; min-width: 0; }
}
/* Keep lines readable on wide screens */
.lh-policy-page .lh-doc-head, .lh-policy-page .lh-doc section { max-width: 920px; }
.lh-policy-page .lh-doc { border-radius: 16px; position: relative; overflow: hidden; }
.lh-policy-page .lh-doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lh-gold); }
.lh-policy-page .lh-doc h3 { padding-left: 14px; border-left: 3px solid var(--lh-gold); }
/* Table of contents: link rows, current section highlighted (set by the page script) */
.lh-policy-page .lh-toc { border-radius: 16px; padding: 18px; max-height: calc(100vh - 110px); overflow-y: auto; }
.lh-policy-page .lh-toc h6 { display: flex; align-items: center; gap: 8px; text-transform: none; }
.lh-policy-page .lh-toc h6::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--lh-gold); }
.lh-policy-page .lh-toc ol { padding-left: 0; list-style: none; counter-reset: lh-toc; }
.lh-policy-page .lh-toc li { margin-bottom: 2px; counter-increment: lh-toc; }
.lh-policy-page .lh-toc a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 8px; transition: background .15s, color .15s; }
.lh-policy-page .lh-toc a::before { content: counter(lh-toc) "."; color: var(--lh-muted); min-width: 16px; }
.lh-policy-page .lh-toc a:hover { background: var(--lh-soft); }
.lh-policy-page .lh-toc a.is-active { background: var(--lh-gold-soft); color: var(--lh-gold-dark); font-weight: 600; }
.lh-policy-page .lh-toc a.is-active::before { color: var(--lh-gold-dark); }
@media (max-width: 991px) { .lh-policy-page .lh-toc { max-height: none; } }

/* Policy text edited in Admin › Website › Page content (headings get their ids from the server for the contents list) */
.lh-doc-body { padding-top: 14px; }
.lh-doc-body h3 { padding-top: 14px; scroll-margin-top: 90px; }
.lh-doc-body h4 { font-size: 15px; margin: 14px 0 8px; scroll-margin-top: 90px; }
.lh-doc-body ol { padding-left: 20px; margin-bottom: 12px; }
.lh-doc-body table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.lh-doc-body th, .lh-doc-body td { border: 1px solid var(--lh-line); padding: 6px 10px; text-align: left; }
