.page-projects {
    color: var(--navy)
}

.project-wrap {
    width: min(100% - 64px, 1240px);
    margin: auto
}

.projects-hero {
    min-height: 330px;
    background: linear-gradient(90deg, #fff 0%, #fffd 48%, #fff0 76%), url('../images/project1.jpg') right center/52% 100% no-repeat, #eef8fc
}

.projects-hero .project-wrap {
    padding-top: 65px
}

.projects-hero h1 {
    margin: 0 0 8px;
    font-size: 43px
}

.projects-hero p {
    max-width: 450px;
    margin: 0;
    color: #526c80;
    line-height: 1.45
}

.project-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: -27px;
    position: relative
}

.project-values article {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 18px;
    background: #f6fafc;
    color: #314f68;
    font-size: 14px
}

.project-values span {
    color: var(--brand);
    font-size: 25px
}

.project-values__img {
    width: 56px;
    height: 56px;
    flex: none;
    object-fit: cover;
    border-radius: 6px
}

.project-filter {
    display: flex;
    gap: 9px;
    padding: 24px 0
}

.project-filter button {
    flex: 1;
    border: 0;
    background: #eef5f8;
    padding: 10px;
    color: #4b687e;
    font-weight: 700
}

.project-filter button.active {
    background: #063a67;
    color: #fff
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-bottom: 31px
}

.project-card {
    border: 1px solid #dae6eb
}

.project-card img {
    width: 100%;
    height: 205px;
    object-fit: cover
}

.project-card div {
    padding: 12px
}

.project-card h2 {
    margin: 0 0 8px;
    font-size: 19px
}

.project-card p {
    margin: 0;
    color: #617689;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin: 13px 0;
    color: #607485;
    font-size: 11px
}

.project-card a {
    color: var(--brand);
    font-weight: 800
}

.project-cta {
    background: linear-gradient(90deg, #ecf9ff 0%, #ecf9ffd9 45%, #fff0 75%), url('../images/project3.jpg') right center/50% 100% no-repeat, #ecf9ff
}

.project-cta .project-wrap {
    padding: 31px 0
}

.project-cta h2 {
    margin: 0;
    font-size: 25px
}

.project-cta p {
    max-width: 420px;
    color: #557084
}

.orange-button {
    display: inline-block;
    background: #f47920;
    color: #fff !important;
    padding: 11px 17px;
    border-radius: 3px;
    font-weight: 800
}

/* ===== Trang chi tiet du an (theo mau "Trang chi tiet du an.jpg") ===== */
.project-icon {
    width: 20px;
    height: 20px;
    flex: none;
    vertical-align: middle
}

.project-icon--sm {
    width: 15px;
    height: 15px
}

.project-icon--call {
    width: 30px;
    height: 30px
}

.project-breadcrumb {
    padding: 18px 0 8px;
    color: #65798b;
    font-size: 12px
}

.project-breadcrumb a {
    color: inherit
}

.project-breadcrumb span:not(:last-child) {
    margin: 0 8px
}

.project-title {
    padding: 5px 0 24px;
    background: linear-gradient(90deg, #f1faff, #e2f2fb)
}

.project-title h1 {
    margin: 6px 0 8px;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.5px
}

.project-title p {
    margin: 0 0 16px;
    color: #50697d;
    font-size: 17px
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.project-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid #d3e5ef;
    border-radius: 18px;
    color: var(--navy);
    font-size: 12px
}

.project-tags .project-icon {
    width: 17px;
    height: 17px
}

.project-detail {
    display: grid;
    grid-template-columns: 1.75fr .76fr;
    gap: 28px;
    padding: 30px 0
}

/* Muc luc */
.project-toc {
    margin-bottom: 22px;
    border: 1px solid #d3e3ee;
    border-radius: 3px;
    background: #fff
}

.project-toc__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: #edf6fb;
    color: var(--navy);
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    text-align: left;
    cursor: pointer
}

.project-toc .project-icon {
    transition: transform .2s
}

.project-toc.is-open .project-icon {
    transform: rotate(45deg)
}

.project-toc ol {
    margin: 0;
    padding: 12px 16px 14px 38px;
    color: #51697c;
    font-size: 15px;
    line-height: 1.9
}

.project-toc ol a {
    color: inherit
}

/* Noi dung bai viet */
.project-copy__content h2 {
    margin: 26px 0 8px;
    color: var(--navy);
    font-size: 26px;
    line-height: 1.2
}

.project-copy__content>h2:first-child {
    margin-top: 4px
}

.project-copy__content p {
    margin: 0 0 14px;
    color: #597083;
    font-size: 15px;
    line-height: 1.65
}

.project-copy__content img {
    display: block;
    width: 100%;
    height: 290px;
    margin: 14px 0 6px;
    border-radius: 3px;
    object-fit: cover
}

.project-copy__content ul {
    margin: 0 0 14px;
    padding-left: 22px
}

.project-copy__content li {
    margin: 4px 0;
    color: #597083;
    font-size: 15px;
    line-height: 1.55
}

.project-copy__content li::marker {
    color: #ff7827
}

.project-copy__content table {
    width: 100%;
    margin: 14px 0 22px;
    border-collapse: collapse;
    font-size: 14px
}

.project-copy__content td,
.project-copy__content th {
    padding: 9px 12px;
    border: 1px solid #d6e4ea;
    text-align: left;
    color: #546d80
}

.project-copy__content th {
    background: #eaf5fa;
    color: var(--navy);
    font-weight: 800
}

.project-more {
    display: flex;
    justify-content: center;
    margin-top: 10px
}

.project-more button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    border: 1.5px solid var(--navy);
    border-radius: 3px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

/* Sidebar */
.project-side article {
    margin-bottom: 14px;
    border-radius: 3px;
    overflow: hidden
}

.project-side h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px
}

.side-info {
    background: #f1f8fc
}

.side-info h2 {
    padding: 15px 16px 12px;
    color: var(--navy)
}

.side-info dl {
    margin: 0
}

.side-info dl>div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    padding: 11px 16px;
    border-top: 1px solid #dfeaf1;
    background: #fff
}

.side-info dt {
    color: #6b7f8f;
    font-size: 13px
}

.side-info dd {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700
}

.project-side .consult-side {
    padding: 18px 16px 16px;
    background: #063a67;
    color: #fff
}

.consult-side h2 {
    color: #fff;
    font-size: 20px
}

.consult-side>p {
    margin: 6px 0 14px;
    color: #cfe0ee;
    font-size: 13px;
    line-height: 1.45
}

.consult-side form {
    display: grid;
    gap: 9px
}

.consult-side .field {
    position: relative;
    display: block
}

.consult-side input,
.consult-side textarea {
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 14px
}

.consult-side textarea {
    height: 76px;
    resize: vertical
}

.consult-side .field span {
    position: absolute;
    top: 11px;
    left: 12px;
    color: #8aa0b0;
    font-size: 14px;
    pointer-events: none
}

.consult-side .field i {
    color: #e53935;
    font-style: normal
}

.consult-side .field input:not(:placeholder-shown)+span,
.consult-side .field textarea:not(:placeholder-shown)+span,
.consult-side .field input:focus+span,
.consult-side .field textarea:focus+span {
    display: none
}

.captcha-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 9px;
    align-items: center
}

.consult-side .btn-submit,
.consult-side .btn-zalo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 3px;
    font-weight: 800;
    cursor: pointer
}

.consult-side .btn-submit {
    border: 0;
    background: #f47920;
    color: #fff;
    font-size: 15px
}

.consult-side .btn-zalo {
    border: 1.5px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 15px;
    text-decoration: none
}

.side-contact {
    background: #eaf4fb
}

.side-contact h2 {
    padding: 13px 16px;
    background: #063a67;
    color: #fff;
    font-size: 17px
}

.side-contact ul {
    margin: 0;
    padding: 0;
    list-style: none
}

.side-contact li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #d5e5ef
}

.side-contact li:last-child {
    border-bottom: 0
}

.side-contact small {
    display: block;
    color: #61768a;
    font-size: 13px
}

.side-contact b {
    display: block;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800
}

.side-contact li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: #61768a;
    font-size: 13px
}

/* Hinh anh du an (carousel) va du an lien quan */
.gallery-section {
    padding: 26px 0 22px;
    background: #eaf6fd
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px
}

.gallery-section h2,
.related-projects .project-wrap>h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 26px
}

.gallery-section h2::before,
.related-projects .project-wrap>h2::before {
    content: "";
    flex: none;
    width: 30px;
    height: 4px;
    background: #f47920
}

.gallery-section p,
.related-projects .project-wrap>p {
    margin: 0 0 0 42px;
    color: #50697d;
    font-size: 14px
}

.related-projects .project-wrap>p {
    margin-bottom: 16px
}

.gallery-nav {
    display: flex;
    gap: 8px
}

.gallery-nav button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #cfe0ea;
    border-radius: 3px;
    background: #fff;
    cursor: pointer
}

.gallery-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
}

.gallery-track::-webkit-scrollbar {
    display: none
}

.gallery-track figure {
    flex: 0 0 calc((100% - 20px) / 3);
    margin: 0;
    scroll-snap-align: start
}

.gallery-track img {
    display: block;
    width: 100%;
    height: 172px;
    object-fit: cover
}

.gallery-track figcaption {
    margin-top: 6px;
    color: #506a80;
    font-size: 13px
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px
}

.gallery-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b9cad6;
    cursor: pointer
}

.gallery-dots button.is-active {
    background: #f47920
}

.related-projects {
    padding: 28px 0
}

.related-projects .project-card {
    border: 1px solid #dae6eb;
    background: #fff
}

.related-projects .project-card img {
    height: 150px
}

.related-projects .project-card h2 {
    margin: 0 0 8px;
    font-size: 15px
}

.related-projects .project-card a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px
}

@media(max-width:767px) {
    .project-wrap {
        width: min(100% - 30px, 1240px)
    }

    .projects-hero {
        min-height: 270px;
        background-size: 80% 100%
    }

    .projects-hero h1,
    .project-title h1 {
        font-size: 32px
    }

    .project-values,
    .project-grid,
    .gallery-grid {
        grid-template-columns: 1fr
    }

    .project-filter {
        overflow-x: auto
    }

    .project-filter button {
        min-width: 118px
    }

    .project-detail {
        grid-template-columns: 1fr
    }

    .project-copy>img {
        height: 210px
    }
}

@media(max-width:767px) {
    .gallery-track figure {
        flex-basis: 82%
    }

    .project-copy__content img {
        height: 210px
    }

    .section-head {
        flex-wrap: wrap
    }
}

/* Popup xem anh (lightbox) cho gallery du an */
.gallery-track a {
    display: block;
    cursor: zoom-in
}

.project-copy__content img {
    cursor: zoom-in
}

.gallery-nav button:disabled {
    opacity: .4;
    cursor: default
}

.related-projects .project-card img {
    height: 140px
}

.pj-lb-open {
    overflow: hidden
}

.pj-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 20, 35, .92)
}

.pj-lightbox[hidden] {
    display: none
}

.pj-lightbox figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(92vw, 1100px);
    margin: 0
}

.pj-lb-img {
    display: block;
    min-width: min(70vw, 640px);
    max-width: 100%;
    max-height: 82vh;
    border-radius: 3px;
    background: #0c2238;
    object-fit: contain
}

.pj-lightbox figcaption {
    margin-top: 10px;
    color: #fff;
    font-size: 15px;
    text-align: center
}

.pj-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    cursor: pointer
}

.pj-lightbox button:hover,
.pj-lightbox button:focus-visible {
    background: rgba(255, 255, 255, .3)
}

.pj-lightbox button img {
    width: 22px;
    height: 22px
}

.pj-lb-close {
    top: 18px;
    right: 18px
}

.pj-lb-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.pj-lb-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.pj-lb-count {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    color: #cfe0ee;
    font-size: 13px;
    text-align: center
}

/* Icon mui ten trong the du an khong bi luat .project-card img (100% x 205px) de kich thuoc */
.project-card img.project-icon {
    width: 15px;
    height: 15px;
    object-fit: contain
}

/* Noi dung khach soan bang trinh soan thao: chu truc tiep, H3/H4 */
.project-copy__content {
    color: #597083;
    font-size: 15px;
    line-height: 1.65
}

.project-copy__content h3,
.project-copy__content h4 {
    margin: 20px 0 6px;
    color: var(--navy);
    line-height: 1.25
}

.project-copy__content h3 {
    font-size: 20px
}

.project-copy__content h4 {
    font-size: 17px
}

.project-copy__content a {
    color: var(--brand);
    text-decoration: underline
}
