/* ==========================================================================
   TRANG DỰ ÁN — cùng ngôn ngữ thiết kế với trang tuyển dụng
   ========================================================================== */
.pj-page {
    --pj-blue: #288cf8;
    --pj-blue-deep: #1a5cff;
    --pj-ink: #16182c;
    --pj-body: #5b5f78;
    --pj-muted: #8a8ca2;
    --pj-line: #e6ecf6;

    background: #fff;
    color: var(--pj-ink);
}

/* --- Hero --- */
.pj-hero {
    padding: 72px 0 64px;
    background: linear-gradient(180deg, #f4f8ff, #ffffff 60%);
}

.pj-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 48px;
}

.pj-top .breadcrumb { margin: 0; font-size: 15px; }
.pj-updated { color: var(--pj-muted); font-size: 14px; }

.pj-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 64px;
    align-items: start;
}

.pj-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--pj-blue);
    font-size: 12.6px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pj-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
}

.pj-hero h1 {
    margin: 0 0 22px;
    color: var(--pj-ink);
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.14;
    text-wrap: balance;
}

.pj-hero h1 .blue { color: var(--pj-blue); }

.pj-lead {
    max-width: 36em;
    margin: 0 0 26px;
    color: var(--pj-body);
    font-size: 17px;
    line-height: 1.68;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.pj-lead strong { color: var(--pj-ink); font-weight: 700; }

.pj-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 3px;
    border-bottom: 2px solid rgba(40, 140, 248, .35);
    color: var(--pj-blue);
    font-size: 17px;
    font-weight: 700;
}

.pj-cta:hover { border-color: var(--pj-blue); color: var(--pj-blue-deep); }

/* Mục lục dự án bên phải hero */
.pj-index {
    padding: 26px;
    border: 1px solid var(--pj-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(10, 24, 56, .05), 0 24px 48px -30px rgba(10, 24, 56, .35);
}

.pj-index-title {
    margin: 0 0 16px;
    color: var(--pj-muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.pj-index-list { margin: 0; padding: 0; list-style: none; }

.pj-index-list li + li { border-top: 1px solid var(--pj-line); }

.pj-index-list a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    color: inherit;
}

.pj-index-list a:hover .pj-index-name { color: var(--pj-blue-deep); }

.pj-index-num {
    flex: none;
    color: var(--pj-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    padding-top: 3px;
}

.pj-index-body { display: block; min-width: 0; }

.pj-index-name {
    display: block;
    color: var(--pj-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.pj-index-kind {
    display: block;
    margin-top: 2px;
    color: var(--pj-muted);
    font-size: 13px;
}

/* Dải số liệu */
.pj-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--pj-line);
}

.pj-facts li { padding: 20px 26px 20px 0; border-right: 1px solid var(--pj-line); }
.pj-facts li + li { padding-left: 26px; }
.pj-facts li:last-child { border-right: 0; }

.pj-facts b {
    display: block;
    color: var(--pj-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
}

.pj-facts span { display: block; margin-top: 2px; color: var(--pj-muted); font-size: 14.5px; }

/* --- Dải --- */
.pj-band { padding: 100px 0; }

.pj-band--dark {
    color: #fff;
    background: linear-gradient(180deg, #071a45, #0b2256 30%, #0e2a66 65%, #123279);
}

.pj-band--light { background: #f7faff; }

.pj-band-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 56px;
    align-items: start;
}

.pj-band-head h2,
.pj-cta-band h2 {
    margin: 0;
    color: var(--pj-ink);
    font-size: clamp(25px, 3.1vw, 44px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
    text-wrap: balance;
}

.pj-band--dark h2 { color: #fff; }
.pj-band h2 .dim { color: #8fb6ff; }

.pj-head-note {
    margin: 0;
    padding-left: 32px;
    border-left: 1px solid var(--pj-line);
    color: var(--pj-body);
    font-size: 16px;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.pj-band--dark .pj-head-note {
    border-left-color: rgba(255, 255, 255, .18);
    color: #aab9d6;
}

.pj-rule {
    position: relative;
    height: 1px;
    margin: 34px 0 38px;
    background: rgba(255, 255, 255, .16);
}

.pj-rule::after {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pj-blue);
    box-shadow: 0 0 0 6px rgba(40, 140, 248, .3);
}

/* --- Thẻ dự án --- */
.pj-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pj-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px 26px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    scroll-margin-top: 96px;
    transition: transform .26s cubic-bezier(.2, .7, .3, 1), border-color .26s ease, background .26s ease;
}

.pj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(143, 182, 255, .55);
    background: rgba(255, 255, 255, .07);
}

.pj-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.pj-card-num {
    color: #8fb6ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.pj-card-kind {
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #cddcf5;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.pj-card-metric {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.pj-card-metric-label {
    margin: 6px 0 22px;
    color: #8fb6ff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}

.pj-card-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.32;
}

.pj-card-desc {
    margin: 0 0 18px;
    color: #a9bad6;
    font-size: 14.5px;
    line-height: 1.62;
    text-align: justify;
    text-justify: inter-word;
}

.pj-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.pj-card-chips li {
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #b9c8e0;
    font-size: 12px;
    font-weight: 600;
}

.pj-card-link {
    margin-top: auto;
    color: #4c9bff;
    font-size: 14.5px;
    font-weight: 700;
}

.pj-card-link:hover { color: #8fb6ff; }

/* --- Khối "và hàng trăm dự án khác" --- */
.pj-more {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
    margin-top: 52px;
    padding-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.pj-more h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
    text-wrap: balance;
}

.pj-more-note {
    margin: 0;
    max-width: 34em;
    color: #a9bad6;
    font-size: 15.5px;
    line-height: 1.66;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.pj-more-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.pj-more-list li { border-bottom: 1px solid rgba(255, 255, 255, .12); }

.pj-more-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin: 0 -10px;
    padding: 13px 10px;
    border-radius: 10px;
    transition: background .2s ease;
}

.pj-more-list a:hover { background: rgba(255, 255, 255, .05); }

.pj-more-go {
    flex: none;
    margin-left: auto;
    color: #4c9bff;
    font-style: normal;
    font-size: 15px;
    opacity: .5;
    transition: opacity .2s ease, transform .2s ease;
}

.pj-more-list a:hover .pj-more-go { opacity: 1; transform: translateX(3px); }

.pj-more-list b {
    flex: none;
    min-width: 210px;
    color: #eaf1ff;
    font-size: 15.5px;
    font-weight: 700;
}

.pj-more-list span {
    flex: 1;
    min-width: 0;
    color: #8fa4c6;
    font-size: 13.6px;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.pj-more-list a:hover b { color: #8fb6ff; }
.pj-more-list a:hover span { color: #b9c8e0; }

/* --- Khối nội dung cách làm --- */
.pj-prose { max-width: 1080px; }

.pj-prose .article-body { font-size: 17px; line-height: 1.75; }
.pj-prose .article-body p { text-align: justify; text-justify: inter-word; }
.pj-prose .article-body > h2:first-child { margin-top: 0; }
.pj-prose .article-body ol { padding-left: 1.3em; }
.pj-prose .article-body li { margin-bottom: 10px; }

/* --- CTA --- */
.pj-cta-band { padding: 84px 0; }

.pj-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 56px;
    align-items: start;
}

.pj-cta-side p {
    margin: 0 0 22px;
    color: #a9bad6;
    font-size: 16px;
    line-height: 1.65;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.pj-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4c9bff, var(--pj-blue-deep));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 16px 30px -18px rgba(26, 92, 255, .95);
}

.pj-btn:hover { color: #fff; filter: brightness(1.06); }

.pj-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #eaf1ff;
    font-size: 15.5px;
    font-weight: 700;
}

.pj-btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* --- Responsive --- */
@media (max-width: 1180px) {
    .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
    .pj-hero { padding: 56px 0 52px; }
    .pj-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .pj-band { padding: 76px 0; }
    .pj-band-head { grid-template-columns: 1fr; gap: 20px; }
    .pj-head-note { padding-left: 0; border-left: 0; }
    .pj-cta-grid { grid-template-columns: 1fr; gap: 28px; }
    .pj-more { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; padding-top: 32px; }
    .pj-more-note { max-width: none; }
}

@media (max-width: 760px) {
    .pj-grid { grid-template-columns: 1fr; }
    .pj-facts { grid-template-columns: 1fr; margin-top: 34px; }
    .pj-facts li,
    .pj-facts li + li {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--pj-line);
    }
    .pj-facts li:last-child { border-bottom: 0; }
    .pj-index { padding: 20px; }
    .pj-band { padding: 60px 0; }
    .pj-more-list b { min-width: 0; }
    .pj-more-list span { flex-basis: 100%; }
    .pj-btn, .pj-btn-ghost { width: 100%; }
}

/* ==========================================================================
   CHI TIẾT DỰ ÁN
   ========================================================================== */
.pj-hero--detail { padding-bottom: 56px; }

.pj-hero-grid--detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: center;
    gap: 48px;
}

.pj-hero-media { min-width: 0; }

/* Ảnh giao diện hệ thống ở đầu trang */
.pj-cover {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #0b1b3d;
    border: 1px solid #dbe6f5;
    box-shadow: 0 2px 4px rgba(10, 24, 56, .06), 0 34px 60px -34px rgba(10, 24, 56, .55);
}

.pj-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pj-cover figcaption {
    padding: 11px 16px;
    background: #071a45;
    color: #8fb6ff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pj-hero--detail h1 {
    font-size: clamp(28px, 3.3vw, 46px);
    max-width: 22em;
}

.pj-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.pj-hero-chips li {
    padding: 6px 13px;
    border: 1px solid var(--pj-line);
    border-radius: 999px;
    background: #f7faff;
    color: #0b2256;
    font-size: 13px;
    font-weight: 700;
}

.pj-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.pj-btn-ghost--light {
    border-color: #d5e2f5;
    background: #fff;
    color: #0b2256;
}

.pj-btn-ghost--light:hover { border-color: var(--pj-blue); color: var(--pj-blue-deep); background: #fff; }

/* Thẻ số đo bên phải hero */
.pj-metric-card {
    padding: 28px;
    border: 1px solid var(--pj-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(10, 24, 56, .05), 0 24px 48px -30px rgba(10, 24, 56, .35);
}

.pj-metric-value {
    margin: 0;
    color: var(--pj-blue-deep);
    font-size: clamp(38px, 3.6vw, 52px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.pj-metric-label {
    margin: 8px 0 22px;
    color: var(--pj-body);
    font-size: 14.5px;
    line-height: 1.55;
}

.pj-metric-facts { margin: 0; padding: 0; list-style: none; }

.pj-metric-facts li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--pj-line);
    font-size: 14.5px;
}

.pj-metric-facts li:first-child { border-top: 0; padding-top: 0; }
.pj-metric-facts span { flex: none; color: var(--pj-muted); }
.pj-metric-facts b { color: var(--pj-ink); font-weight: 700; text-align: right; }

/* Dải số đo dưới hero chi tiết */
.pj-facts--detail { margin-top: 44px; }

/* Bài viết */
.pj-article {
    padding: 34px 24px 40px;
    border: 1px solid var(--pj-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(10, 24, 56, .05), 0 18px 40px -28px rgba(10, 24, 56, .35);
}

.pj-article .article-body { font-size: 17px; line-height: 1.75; }
.pj-article .article-body > h2:first-child { margin-top: 0; }
.pj-article .article-body p { text-align: justify; text-justify: inter-word; }
.pj-article .article-body table { width: 100%; }

.pj-faq { margin-top: 38px; }
.pj-faq h2 { font-size: 26px; }

/* Dự án khác */
.pj-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pj-card--link {
    color: inherit;
    text-decoration: none;
}

.pj-card--link .pj-card-title { display: block; }

.pj-card--link .pj-card-desc {
    display: block;
    margin: 0 0 18px;
    color: #a9bad6;
    font-size: 14.5px;
    line-height: 1.62;
}

.pj-card--link .pj-card-top { margin-bottom: 16px; }

.pj-back { margin: 26px 0 0; }
.pj-back a { color: #9fd0ff; font-size: 15px; font-weight: 700; }
.pj-back a:hover { color: #fff; }

/* CTA nền sáng */
.pj-cta-light h2 { color: var(--pj-ink); }
.pj-cta-light .pj-cta-side p { color: var(--pj-body); }

.pj-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid #d5e2f5;
    border-radius: 12px;
    background: #fff;
    color: #0b2256;
    font-size: 15.5px;
    font-weight: 700;
}

.pj-btn-outline:hover { border-color: var(--pj-blue); color: var(--pj-blue-deep); }

@media (max-width: 1020px) {
    .pj-hero-grid--detail { grid-template-columns: 1fr; gap: 34px; }
    .pj-metric-card { max-width: 480px; }
    .pj-hero-media { max-width: 100%; }
    .pj-facts--detail { margin-top: 34px; }
}

@media (max-width: 760px) {
    .pj-grid--two { grid-template-columns: 1fr; }
    .pj-hero-actions .pj-btn,
    .pj-hero-actions .pj-btn-ghost,
    .pj-cta-actions .pj-btn-outline { width: 100%; }
    .pj-article { padding: 24px 18px 30px; }
}
