/* ==========================================================================
   Landing page cong ty (recruiter tu thiet ke) — /company/{slug}/{id}
   Dung chung cho trang cong khai, trang xem truoc va canvas cua builder.

   Moi mau sac / font / bo goc lay tu bien CSS cua theme (LandingLayout::themeCss):
     --lp-primary --lp-accent --lp-bg --lp-surface --lp-text --lp-on-primary --lp-on-accent
     --lp-font-head --lp-font-body --lp-radius
   Moi khoi co the de mau rieng: --lp-b-bg, --lp-b-text, va he so co chu --lp-scale.

   Chu noi dung khong nho hon 16px va luon du tuong phan (quy tac ag-redesign: khong dung chu
   xam nhat tren nen mo). Mobile: mot cot, mot thanh cuon chinh cua trang.
   ========================================================================== */

/* Nen ngoai xam nhat, trang cua to chuc nam trong khung noi len — giong canvas o trinh thiet ke */
body.lp-body {
    background: #e4e6e8;
}

.lp-stage {
    padding: 24px 24px 32px;
}

.lp-canvas {
    max-width: 1240px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}

/* Trong khung, khong can le ngang cua hang (khung da gioi han be ngang) */
.lp-canvas .lp-row {
    max-width: none;
}

.ag-landing {
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: var(--lp-font-body);
    font-size: 17px;
    line-height: 1.65;
    padding: 0 0 32px;
}

.ag-landing *,
.ag-landing *::before,
.ag-landing *::after {
    box-sizing: border-box;
}

/* ---------- Hang / cot ---------- */
.lp-row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-row + .lp-row {
    margin-top: 24px;
}

/* Hang dau tien bat dau bang hero rong toan khung: tran sat mep tren */
.lp-row:first-child {
    padding-top: 24px;
}

.lp-col {
    grid-column: var(--lp-x) / span var(--lp-w);
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ---------- Khoi ---------- */
.lp-block {
    --lp-b-bg: transparent;
    --lp-b-text: var(--lp-text);
    --lp-scale: 1;
    background: var(--lp-b-bg);
    color: var(--lp-b-text);
    font-size: calc(17px * var(--lp-scale));
    border-radius: var(--lp-radius);
    position: relative;
    min-width: 0;
}

.lp-pad--s { padding: 16px; }
.lp-pad--m { padding: 28px; }
.lp-pad--l { padding: 48px; }

/* Khoi khong co nen rieng va khong nhan manh: bo dem ngang de canh thang mep noi dung */
.lp-em--none:not(.lp-has-bg) {
    padding-left: 0;
    padding-right: 0;
}

.lp-em--card {
    background: var(--lp-b-bg, var(--lp-surface));
}

.lp-em--card:not(.lp-has-bg) {
    --lp-b-bg: var(--lp-surface);
}

.lp-em--highlight {
    border-left: 6px solid var(--lp-accent);
}

.lp-em--highlight:not(.lp-has-bg) {
    --lp-b-bg: var(--lp-surface);
}

.lp-em--outline {
    border: 2px solid var(--lp-primary);
}

.lp-em--shadow {
    box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
}

.lp-em--shadow:not(.lp-has-bg) {
    --lp-b-bg: var(--lp-bg);
}

.lp-align--center {
    text-align: center;
}

.lp-align--center .lp-stats,
.lp-align--center .lp-social,
.lp-align--center .lp-cta {
    justify-content: center;
}

/* ---------- Chu ---------- */
.ag-landing .lp-h1,
.ag-landing .lp-h2,
.ag-landing .lp-h3 {
    font-family: var(--lp-font-head);
    color: inherit;
    margin: 0 0 .5em;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.ag-landing .lp-h1 { font-size: calc(48px * var(--lp-scale)); font-weight: 700; }
.ag-landing .lp-h2 { font-size: calc(32px * var(--lp-scale)); font-weight: 700; }
.ag-landing .lp-h3 { font-size: calc(20px * var(--lp-scale)); font-weight: 600; }

.ag-landing p {
    margin: 0 0 1em;
}

/* style.css cua site to xam cho moi <p>/<li> — tren landing chu phai theo mau cua khoi (nen toi -> chu sang),
   neu khong se thanh "chu xam tren nen mau", kho doc */
.ag-landing p,
.ag-landing li,
.ag-landing figcaption,
.ag-landing blockquote {
    color: inherit;
}

.ag-landing p:last-child {
    margin-bottom: 0;
}

.lp-lead {
    font-size: 1.2em;
    max-width: 46em;
}

.lp-align--center .lp-lead {
    margin-left: auto;
    margin-right: auto;
}

.lp-muted {
    opacity: .85;
}

.lp-prose h3 { font-family: var(--lp-font-head); font-size: 1.35em; margin: 1.2em 0 .4em; }
.lp-prose h4 { font-family: var(--lp-font-head); font-size: 1.15em; margin: 1em 0 .4em; }
.lp-prose ul,
.lp-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.lp-prose li { margin: .25em 0; }
.lp-prose blockquote { border-left: 4px solid var(--lp-accent); margin: 1em 0; padding: .2em 0 .2em 1em; }

.ag-landing a {
    color: inherit;
    text-decoration-color: var(--lp-accent);
    text-underline-offset: 3px;
}

.lp-prose a,
.lp-contact a,
.lp-locs a {
    text-decoration: underline;
}

/* ---------- Nut ---------- */
.ag-landing .lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--lp-radius);
    background: var(--lp-primary);
    color: var(--lp-on-primary);
    font-family: var(--lp-font-head);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, filter .15s ease;
}

.ag-landing .lp-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ag-landing .lp-btn--accent {
    background: var(--lp-accent);
    color: var(--lp-on-accent);
}

.ag-landing .lp-btn--ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.lp-more {
    margin-top: 20px;
}

/* ---------- Hero ---------- */
.lp-block--hero.lp-em--none {
    padding: 0;
}

.lp-hero {
    position: relative;
    display: flex;
    border-radius: var(--lp-radius);
    overflow: hidden;
    color: var(--lp-on-primary);
    background: var(--lp-primary);
}

.lp-block--hero.lp-has-bg .lp-hero {
    background: var(--lp-b-bg);
    color: var(--lp-b-text);
}

.lp-hero--h-s { min-height: 300px; }
.lp-hero--h-m { min-height: 440px; }
.lp-hero--h-l { min-height: 580px; }

.lp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero-shade {
    position: absolute;
    inset: 0;
    background: #000;
}

.lp-hero--cover .lp-hero-body {
    position: relative;
    align-self: flex-end;
    padding: 56px;
    max-width: 860px;
}

.lp-hero--cover:not(.lp-hero--noimg) {
    color: #fff;
}

.lp-align--center .lp-hero--cover .lp-hero-body {
    align-self: center;
    margin: 0 auto;
}

.lp-hero--split .lp-hero-body {
    flex: 1 1 50%;
    padding: 56px;
    align-self: center;
}

.lp-hero-media {
    flex: 1 1 50%;
    min-height: 100%;
    position: relative;
}

.lp-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--lp-radius);
    padding: 8px;
    margin-bottom: 20px;
}

.lp-hero .lp-btn {
    margin-top: 24px;
}

/* ---------- So lieu ---------- */
.lp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
}

.lp-stat {
    flex: 1 1 140px;
}

.lp-stat-v {
    font-family: var(--lp-font-head);
    font-size: calc(44px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.05;
    color: var(--lp-primary);
}

.lp-has-bg .lp-stat-v {
    color: inherit;
}

.lp-stat-l {
    font-size: 16px;
    margin-top: 6px;
}

/* ---------- The / luoi ---------- */
.lp-cards,
.lp-gallery {
    display: grid;
    gap: 20px;
}

.lp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lp-card {
    background: var(--lp-surface);
    color: var(--lp-text);
    border-radius: var(--lp-radius);
    padding: 24px;
    text-align: left;
}

.lp-card-ic {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: var(--lp-radius);
    background: var(--lp-primary);
    color: var(--lp-on-primary);
    font-size: 20px;
    margin-bottom: 14px;
}

.lp-gallery figure,
.lp-image {
    margin: 0;
}

.lp-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--lp-radius);
    display: block;
}

.lp-image img {
    width: 100%;
    border-radius: var(--lp-radius);
    display: block;
}

.lp-gallery figcaption,
.lp-image figcaption {
    font-size: 15.5px;
    margin-top: 8px;
}

/* ---------- Viec lam ---------- */
.lp-jobs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ag-landing .lp-job {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "t go" "m go";
    gap: 4px 16px;
    align-items: center;
    padding: 18px 22px;
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    color: var(--lp-text);
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color .15s ease, transform .15s ease;
}

.ag-landing .lp-job:hover {
    border-color: var(--lp-primary);
    transform: translateY(-1px);
}

.lp-job-t {
    grid-area: t;
    font-family: var(--lp-font-head);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.3;
}

.lp-job-m {
    grid-area: m;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 15.5px;
}

.lp-job-go {
    grid-area: go;
    font-size: 22px;
    color: var(--lp-primary);
}

/* ---------- Dia diem / lien he ---------- */
.lp-locs,
.lp-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-locs li,
.lp-contact li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(127, 127, 127, .25);
}

.lp-locs li:last-child,
.lp-contact li:last-child {
    border-bottom: 0;
}

.lp-locs li span {
    flex: 1;
}

.lp-locs i,
.lp-contact i {
    color: var(--lp-primary);
    width: 18px;
}

.lp-has-bg .lp-locs i,
.lp-has-bg .lp-contact i {
    color: inherit;
}

.lp-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.lp-social a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-primary);
    color: var(--lp-on-primary) !important;
    text-decoration: none;
    font-size: 18px;
}

/* ---------- Video ---------- */
.lp-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: #000;
}

.lp-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Cam nhan ---------- */
.lp-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.lp-quote {
    margin: 0;
    padding: 24px;
    border-radius: var(--lp-radius);
    background: var(--lp-surface);
    color: var(--lp-text);
    text-align: left;
}

.lp-quote p {
    font-size: 1.08em;
    font-style: italic;
}

.lp-quote footer {
    font-size: 15.5px;
    margin-top: 12px;
}

/* ---------- Dong thoi gian ---------- */
.lp-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 3px solid var(--lp-primary);
}

.lp-timeline li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 0 0 22px 20px;
    position: relative;
    text-align: left;
}

.lp-timeline li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--lp-accent);
}

.lp-tl-year {
    font-family: var(--lp-font-head);
    font-weight: 700;
    font-size: 20px;
    color: var(--lp-primary);
}

.lp-has-bg .lp-tl-year {
    color: inherit;
}

/* ---------- Doi ngu / doi tac ---------- */
.lp-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px;
}

.lp-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.lp-person img,
.lp-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.lp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-primary);
    color: var(--lp-on-primary);
    font-family: var(--lp-font-head);
    font-size: 36px;
    font-weight: 700;
}

.lp-person span {
    font-size: 15.5px;
}

.lp-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    align-items: center;
}

.lp-align--center .lp-partners {
    justify-content: center;
}

.ag-landing .lp-partner {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    font-weight: 600;
    text-decoration: none;
}

.lp-partner img {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
}

/* ---------- Keu goi ---------- */
.lp-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.lp-align--center .lp-cta {
    flex-direction: column;
}

/* ---------- Ngan cach ---------- */
.lp-divider--line {
    border-top: 1px solid currentColor;
    opacity: .3;
}

.lp-divider--space {
    height: 24px;
}

.lp-block--divider {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ---------- O giu cho (chi hien trong builder / xem truoc) ---------- */
.lp-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(127, 127, 127, .12) 0 12px, rgba(127, 127, 127, .2) 12px 24px);
    color: rgba(127, 127, 127, .9);
    font-size: 40px;
    border-radius: var(--lp-radius);
}

.lp-empty {
    max-width: 1240px;
    margin: 40px auto;
    padding: 60px 24px;
    text-align: center;
    background: var(--lp-surface);
    border-radius: var(--lp-radius);
}

/* ---------- Thanh xem truoc ban nhap ---------- */
.lp-previewbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 10px 24px;
    background: #fff3d6;
    color: #6b3a00;
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.lp-previewbar a {
    color: #6b3a00;
    text-decoration: underline;
}

/* ---------- Dai Seedoo (luon co, ke ca khi tat footer cua site) ---------- */
.lp-seedoo {
    background: #0d4d2b;
    color: #fff;
    text-align: center;
    padding: 16px 24px;
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 15.5px;
}

.lp-seedoo p {
    margin: 0;
    color: #fff;
}

/* ---------- Man hinh hep ---------- */
@media (max-width: 991px) {
    .lp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ag-landing .lp-h1 { font-size: calc(38px * var(--lp-scale)); }
}

@media (max-width: 767px) {
    .lp-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .lp-row + .lp-row {
        margin-top: 16px;
    }

    .lp-row:first-child {
        padding-top: 16px;
    }

    .lp-col {
        gap: 16px;
    }

    .lp-hide-m {
        display: none !important;
    }

    .lp-pad--m { padding: 20px; }
    .lp-pad--l { padding: 28px; }

    .ag-landing .lp-h1 { font-size: calc(32px * min(var(--lp-scale), 1.2)); }
    .ag-landing .lp-h2 { font-size: calc(26px * min(var(--lp-scale), 1.2)); }
    .lp-stat-v { font-size: calc(34px * min(var(--lp-scale), 1.2)); }

    .lp-cols-2,
    .lp-cols-3,
    .lp-cols-4 { grid-template-columns: minmax(0, 1fr); }
    .lp-gallery.lp-cols-3,
    .lp-gallery.lp-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .lp-hero { flex-direction: column; }
    .lp-hero--h-s { min-height: 240px; }
    .lp-hero--h-m { min-height: 360px; }
    .lp-hero--h-l { min-height: 440px; }
    .lp-hero--cover .lp-hero-body,
    .lp-hero--split .lp-hero-body { padding: 28px 22px; }
    .lp-hero-media { min-height: 220px; }
    .lp-hero-logo { width: 60px; height: 60px; }

    .lp-timeline li { grid-template-columns: 1fr; gap: 4px; }
    .lp-cta { flex-direction: column; align-items: flex-start; }
    .lp-previewbar { padding: 10px 16px; font-size: 15px; }
    .lp-seedoo { padding: 14px 16px; }
    .lp-stage { padding: 10px 8px 16px; }
    .lp-canvas { border-radius: 8px; }
}
