/* ============ Chi tiết Dự án (single-featured_item.php) ============ */
.hpp {
    --navy: #0a2a66;
    --navy-dark: #071d47;
    --blue: #0a4fc1;
    --blue-hover: #083f9c;
    --bg: #f4f7fb;
    --tint: #e6eefa;
    --line: #dbe3ef;
    --text: #3d4a63;
    --muted: #5b6780;
    --gold-1: #f3e0ab;
    --gold-2: #d6ad5a;
    --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
}

/* flatsome-child.css ép font Inter !important cho h1-h6, p, span */
.hpp h2,
.hpp h3,
.hpp h4,
.hpp p,
.hpp span,
.hpp li,
.hpp td,
.hpp th {
    font-family: var(--sans) !important;
}

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

.hpp a {
    text-decoration: none;
}

.hpp-container {
    max-width: calc(1160px + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

.hpp-ico {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hpp-section {
    padding: 56px 0 80px;
}

.hpp-section--white {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}

.hpp-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.hpp-h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

/* ---------- Bố cục 2 cột ---------- */
.hpp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}

.hpp-main {
    min-width: 0;
}

.hpp-cover {
    margin: 0 0 32px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(10, 42, 102, .14);
    background: var(--tint);
}

.hpp-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: cover;
}

/* ---------- Nội dung bài ---------- */
.hpp-content {
    padding: 36px 40px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 17px;
    color: var(--text);
}

.hpp-content > :first-child {
    margin-top: 0;
}

.hpp-content p {
    margin: 0 0 16px;
}

.hpp-content strong,
.hpp-content b {
    font-weight: 600;
    color: var(--navy);
}

.hpp-content h2,
.hpp-content h3,
.hpp-content h4 {
    margin: 36px 0 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: var(--navy);
}

.hpp-content h2 {
    position: relative;
    padding-left: 16px;
    font-size: 24px;
}

.hpp-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    border-radius: 4px;
    background: var(--blue);
}

.hpp-content h3 {
    font-size: 20px;
}

.hpp-content ul,
.hpp-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.hpp-content li {
    margin-bottom: 6px;
}

.hpp-content a {
    color: var(--blue);
    text-decoration: underline;
}

.hpp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

/* bảng thông số */
.hpp-content table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 15.5px;
}

.hpp-content th,
.hpp-content td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.55;
}

.hpp-content thead th {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
}

.hpp-content tbody tr:nth-child(even) td {
    background: var(--bg);
}

.hpp-content tbody tr:last-child td {
    border-bottom: 0;
}

.hpp-content tbody td:first-child {
    width: 42%;
    color: var(--muted);
}

/* khối "Lưu ý" dán từ trình soạn thảo ngoài */
.hpp-content div[class*="tableWrapper"] {
    display: block;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #7a5a14;
    background: #fdf6e3;
    border: 1px solid #f1e0b0;
    border-radius: 12px;
}

.hpp-content div[class*="tableWrapper"] strong {
    margin-right: 6px;
    color: #7a5a14;
}

.hpp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hpp-tags a {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    background: var(--tint);
    border-radius: 999px;
}

.hpp-tags a:hover {
    color: #fff;
    background: var(--blue);
}

/* ---------- Dự án trước / sau ---------- */
.hpp-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.hpp-pager__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.hpp-pager__item:hover {
    border-color: var(--blue);
    box-shadow: 0 12px 28px rgba(10, 79, 193, .1);
}

.hpp-pager__item.is-next {
    text-align: right;
    align-items: flex-end;
}

.hpp-pager__lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--blue);
}

.hpp-pager__lbl .hpp-ico {
    width: 16px;
    height: 16px;
}

.hpp-pager__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--navy);
}

/* ---------- Cột phải ---------- */
.hpp-side {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-bar .hpp-side {
    top: 126px;
}

.hpp-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.hpp-card__title {
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
}

.hpp-specs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hpp-specs li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.hpp-specs li:first-child {
    padding-top: 0;
}

.hpp-specs li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hpp-specs__ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--tint);
    color: var(--blue);
}

.hpp-specs__txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hpp-specs__lbl {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.4;
}

.hpp-specs b {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--navy);
}

.hpp-card--cta {
    position: relative;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(circle at 100% 0, rgba(22, 96, 224, .5), transparent 55%),
        linear-gradient(150deg, var(--navy-dark), var(--navy));
}

.hpp-card--cta .hpp-card__title {
    margin-bottom: 10px;
    color: #fff;
}

.hpp-card--cta p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: #d4ddee;
}

.hpp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    padding: 13px 20px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .2s, background .2s;
}

.hpp-btn:hover {
    transform: translateY(-1px);
}

.hpp-btn .hpp-ico {
    width: 18px;
    height: 18px;
}

.hpp-btn--gold,
.hpp-btn--gold:hover {
    color: var(--navy);
}

.hpp-btn--gold {
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    box-shadow: 0 10px 24px rgba(214, 173, 90, .3);
}

.hpp-btn--ghost,
.hpp-btn--ghost:hover {
    color: #fff;
}

.hpp-btn--ghost {
    border-color: rgba(255, 255, 255, .6);
}

.hpp-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.hpp-cta-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 14.5px;
    font-weight: 500;
    color: #d4ddee;
}

.hpp-cta-zalo:hover {
    color: #fff;
}

.hpp-cta-zalo .hpp-ico {
    width: 17px;
    height: 17px;
}

/* ---------- Công trình khác ---------- */
.hpp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.hpp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
}

.hpp-link:hover {
    color: var(--blue-hover);
}

.hpp-link .hpp-ico {
    width: 18px;
    height: 18px;
}

.hpp-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hpp-rcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: box-shadow .2s, border-color .2s;
}

.hpp-rcard:hover {
    border-color: var(--blue);
    box-shadow: 0 18px 38px rgba(10, 42, 102, .1);
}

.hpp-rcard__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 416 / 280;
    background: var(--tint);
}

.hpp-rcard__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.hpp-rcard:hover .hpp-rcard__img img {
    transform: scale(1.04);
}

.hpp-rcard__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 22px;
}

.hpp-rcard__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy);
}

.hpp-rcard:hover .hpp-rcard__title {
    color: var(--blue);
}

.hpp-rcard__meta {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hpp-layout {
        grid-template-columns: 1fr;
    }

    .hpp-side {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hpp-related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hpp-container {
        padding: 0 16px;
    }

    .hpp-section {
        padding: 32px 0 56px;
    }

    .hpp-section--white {
        padding: 56px 0;
    }

    .hpp-cover {
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .hpp-content {
        padding: 22px 18px;
        font-size: 16px;
        border-radius: 14px;
    }

    .hpp-content h2 {
        font-size: 20px;
    }

    .hpp-content th,
    .hpp-content td {
        padding: 11px 12px;
        font-size: 14.5px;
    }

    .hpp-side,
    .hpp-pager,
    .hpp-related {
        grid-template-columns: 1fr;
    }

    .hpp-pager__item.is-next {
        text-align: left;
        align-items: flex-start;
    }

    .hpp-h2 {
        font-size: 24px;
    }

    .hpp-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
