/* ============================================================
   VLP Service CSS — clone 1:1 từ services.html
   Shortcode: [vlp_services] [vlp_service slug=""]
   ============================================================ */

/* ---- Tokens (scoped, override từ Cài đặt nếu cần) ---- */
.vlp-svc-wrap {
    --navy:        #0f1b2c;
    --navy-2:      #16283e;
    --safety:      #ff5a1f;
    --safety-dark: #de4813;
    --paper:       #f5f3ec;
    --paper-line:  #e2ddd0;
    --ink:         #10161f;
    --steel:       #58626e;
    --steel-light: #97a0ab;
    --line:        #e4e1d8;
    --white:       #ffffff;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'IBM Plex Sans', 'Inter', sans-serif;
    --font-mono:    'IBM Plex Mono', 'JetBrains Mono', monospace;

    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.65;
}
.vlp-svc-wrap *, .vlp-svc-wrap *::before, .vlp-svc-wrap *::after { box-sizing: border-box; }
.vlp-svc-wrap a { text-decoration: none; color: inherit; transition: .25s; }
.vlp-svc-wrap img { max-width: 100%; display: block; }
.vlp-svc-wrap ul { list-style: none; margin: 0; padding: 0; }
.vlp-svc-wrap h3, .vlp-svc-wrap h4 { font-family: var(--font-display); }

/* ============================================================
   Quick Jump (hero listing khi dùng [vlp_services show_jump])
   ============================================================ */
.vlp-svc-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.vlp-svc-jump a {
    font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--steel);
    border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 8px;
}
.vlp-svc-jump a .num { color: var(--safety); }
.vlp-svc-jump a:hover { border-color: var(--safety); color: var(--ink); }

/* ============================================================
   Service Row (section cho từng dịch vụ)
   ============================================================ */
.vlp-svc-row {
    padding: 100px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
    scroll-margin-top: 100px;
}
.vlp-svc-row:first-child { border-top: none; }
.vlp-svc-row.alt { background: var(--paper); }

.vlp-svc-grid {
    display: grid;
    grid-template-columns: .92fr 1fr;
    gap: 66px;
    align-items: center;
}
.vlp-svc-grid.reverse { grid-template-columns: 1fr .92fr; }
.vlp-svc-grid.reverse .vlp-svc-img-wrap { order: 2; }
.vlp-svc-grid.reverse .vlp-svc-content  { order: 1; }

/* ---- Cột ảnh: khung kỹ thuật + badge ---- */
.vlp-svc-img-wrap { position: relative; padding: 16px; }
.vlp-svc-corner {
    position: absolute; width: 22px; height: 22px;
}
.vlp-svc-corner.tl { top: 0; left: 0; border-top: 2px solid var(--navy); border-left: 2px solid var(--navy); }
.vlp-svc-corner.br { bottom: 0; right: 0; border-bottom: 2px solid var(--safety); border-right: 2px solid var(--safety); }

.vlp-svc-img {
    position: relative; overflow: hidden;
    box-shadow: 0 24px 48px rgba(15,27,44,.14);
}
.vlp-svc-img img {
    width: 100%; height: 440px; object-fit: cover; display: block;
    transition: transform .6s ease;
}
.vlp-svc-img:hover img { transform: scale(1.04); }

.vlp-svc-badge {
    position: absolute; top: 30px; left: 30px; z-index: 2;
    background: var(--navy); color: var(--white);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
    padding: 7px 13px; display: flex; align-items: center; gap: 8px;
}
.vlp-svc-badge-dot {
    width: 7px; height: 7px; background: var(--safety); border-radius: 50%; flex-shrink: 0;
    animation: vlpBlink 1.6s ease-in-out infinite;
}
@keyframes vlpBlink { 0%,100%{ opacity:1; } 50%{ opacity:.3; } }

/* Dải album thumbs bên dưới ảnh hero */
.vlp-svc-album {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 0 16px;
}
.vlp-svc-album-thumb {
    width: 58px; height: 58px; overflow: hidden; display: block;
    border: 2px solid var(--line); transition: border-color .2s;
}
.vlp-svc-album-thumb:hover { border-color: var(--safety); }
.vlp-svc-album-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Cột nội dung ---- */
.vlp-svc-eyebrow {
    font-family: var(--font-mono); font-size: 13px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--safety);
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.vlp-svc-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--safety); display: inline-block; }

.vlp-svc-content h3 {
    font-size: 29px; color: var(--navy); margin-bottom: 18px;
    font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 12px;
}
.vlp-svc-content h3 i { color: var(--safety); font-size: 24px; }

.vlp-svc-desc { color: var(--steel); font-size: 16px; margin-bottom: 30px; line-height: 1.8; }

/* Thông số nổi bật */
.vlp-svc-highlights {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
.vlp-svc-hl-item {
    display: flex; flex-direction: column; gap: 3px;
    background: var(--paper); border: 1px solid var(--paper-line);
    padding: 10px 16px; min-width: 110px;
}
.vlp-svc-row.alt .vlp-svc-hl-item { background: var(--white); }
.vlp-svc-hl-label {
    font-family: var(--font-mono); font-size: 10px; color: var(--steel-light);
    text-transform: uppercase; letter-spacing: .05em;
}
.vlp-svc-hl-value { font-size: 14px; font-weight: 700; color: var(--navy); }

/* Panel box (dùng cho Ứng dụng + Quy trình) */
.vlp-svc-panel {
    background: var(--paper);
    border: 1px solid var(--paper-line);
    border-left: 3px solid var(--navy);
    padding: 28px 30px;
    margin-bottom: 20px;
}
.vlp-svc-row.alt .vlp-svc-panel { background: var(--white); }

.vlp-svc-panel-title {
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
    margin-bottom: 20px; display: flex; align-items: center; gap: 9px;
}
.vlp-svc-panel-title i { color: var(--safety); font-size: 14px; }

/* Tag chips (Ứng dụng thực tế) */
.vlp-svc-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.vlp-svc-tag {
    font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase;
    letter-spacing: .02em; color: var(--navy);
    background: var(--white); border: 1px solid var(--paper-line);
    padding: 8px 14px 8px 22px; position: relative;
}
.vlp-svc-row.alt .vlp-svc-tag { background: var(--paper); }
.vlp-svc-tag::before {
    content: ''; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 5px; height: 5px; background: var(--safety);
}

/* Flow (Quy trình công nghệ) — connected node diagram */
.vlp-svc-flow { position: relative; padding-left: 2px; }
.vlp-svc-flow::before {
    content: ''; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 1px;
    background: repeating-linear-gradient(to bottom, var(--steel-light) 0 4px, transparent 4px 9px);
}
.vlp-svc-flow-item { position: relative; display: flex; gap: 20px; padding-bottom: 24px; }
.vlp-svc-flow-item:last-child { padding-bottom: 0; }
.vlp-svc-flow-node {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    font-family: var(--font-mono); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--safety);
}
.vlp-svc-flow-text { padding-top: 8px; font-size: 15px; color: var(--steel); line-height: 1.7; }
.vlp-svc-flow-text strong { color: var(--ink); font-weight: 600; }

/* CTA button */
.vlp-svc-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--safety); color: var(--white) !important;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    padding: 16px 32px; transition: background .2s, transform .2s;
    margin-top: 28px; border: none; cursor: pointer; width: fit-content;
}
.vlp-svc-cta:hover { background: var(--safety-dark); transform: translateY(-2px); }
.vlp-svc-cta i { font-size: 14px; }

/* ============================================================
   Card grid layout (layout="card")
   ============================================================ */
.vlp-svc-card-grid {
    display: grid;
    grid-template-columns: repeat(var(--vlp-svc-cols, 2), 1fr);
    gap: 28px;
}
.vlp-svc-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line);
    overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.vlp-svc-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15,27,44,.12); }
.vlp-svc-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper); }
.vlp-svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vlp-svc-card:hover .vlp-svc-card-img img { transform: scale(1.05); }
.vlp-svc-card-img-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--steel-light); }
.vlp-svc-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.vlp-svc-card-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.vlp-svc-card-body p { font-size: 14.5px; color: var(--steel); margin: 0 0 16px; flex: 1; line-height: 1.7; }
.vlp-svc-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--navy); font-weight: 600; font-size: 13.5px;
    border-bottom: 1px solid var(--line); padding-bottom: 2px; margin-top: auto;
}
.vlp-svc-card:hover .vlp-svc-card-link { color: var(--safety); border-color: var(--safety); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
    .vlp-svc-grid,
    .vlp-svc-grid.reverse { grid-template-columns: 1fr; gap: 32px; }
    .vlp-svc-grid.reverse .vlp-svc-img-wrap,
    .vlp-svc-grid.reverse .vlp-svc-content { order: initial; }
    .vlp-svc-img img { height: 340px; }
    .vlp-svc-row { padding: 70px 0; }
}
@media (max-width: 640px) {
    .vlp-svc-content h3 { font-size: 22px; }
    .vlp-svc-card-grid { grid-template-columns: 1fr; }
    .vlp-svc-cta { width: 100%; justify-content: center; }
}
