﻿
/* ===== CƠ BẢN ===== */
:root {
    --gold: #d4af37;
    --gold-dark: #c9a534;
    --cream: #f7f5f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    font-family: Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== NÚT ===== */
.pj-btn {
    display: inline-block;
    padding: 14px 34px;
    border: none;
    border-radius: 25px;
    background: var(--gold);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: .3s ease;
}

    .pj-btn:hover {
        background: var(--gold-dark);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(212, 175, 55, .4);
    }

/* ===== BANNER ===== */
.pj-hero {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pj-hero-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    text-align: center;
}

.pj-eyebrow {
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 5px;
}

    .pj-eyebrow.pj-dark {
        color: var(--gold-dark);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 3px;
    }

.pj-hero h1 {
    margin-bottom: 16px;
    font-size: 42px;
    letter-spacing: 4px;
    line-height: 1.3;
}

.pj-hero-text {
    width: 100%;
    max-width: 640px;
    font-size: 17px;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ===== SECTION CHUNG ===== */
.pj-section {
    width: 100%;
    padding: 70px 20px;
}

    .pj-section > * {
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

.pj-alt {
    background: var(--cream);
}

.pj-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 18px;
    color: #000;
    font-size: 30px;
    letter-spacing: 4px;
    text-align: center;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

    .pj-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 60px;
        height: 2px;
        background: var(--gold);
        transform: translateX(-50%);
    }

/* ===== BỘ LỌC ===== */
.pj-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.pj-filter {
    padding: 10px 24px;
    border: 1px solid var(--gold);
    border-radius: 25px;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s ease;
}

    .pj-filter:hover,
    .pj-filter.active {
        background: var(--gold);
    }

/* ===== LƯỚI DỰ ÁN ===== */
.pj-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    width: 100%;
}

.pj-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gold);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    transition: .3s ease;
}

    .pj-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
    }

.pj-img {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

    .pj-img img {
        transition: transform .4s ease;
    }

.pj-card:hover .pj-img img {
    transform: scale(1.06);
}

.pj-img::after,
.pj-feature-img::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, .8);
    pointer-events: none;
}

.pj-tag {
    position: absolute;
    z-index: 3;
    top: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--gold);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pj-info {
    padding: 22px 22px 26px;
    text-align: center;
}

    .pj-info h3 {
        margin-bottom: 6px;
        color: #000;
        font-size: 18px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .pj-info p {
        margin-bottom: 14px;
        color: #666;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

.pj-link {
    color: var(--gold-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

    .pj-link:hover {
        text-decoration: underline;
    }

/* ===== DỰ ÁN NỔI BẬT ===== */
.pj-feature {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.pj-feature-img {
    position: relative;
    flex: 1.1 1 0;
    min-width: 0;
    height: 520px;
    overflow: hidden;
    border: 1px solid var(--gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.pj-feature-body {
    flex: 1 1 0;
    min-width: 0;
}

    .pj-feature-body h3 {
        margin-bottom: 16px;
        color: #000;
        font-size: 28px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .pj-feature-body > p:not(.pj-eyebrow) {
        margin-bottom: 24px;
        font-size: 14px;
        line-height: 1.9;
        text-align: justify;
        overflow-wrap: anywhere;
    }

.pj-facts {
    margin-bottom: 30px;
    list-style: none;
}

    .pj-facts li {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 12px 0;
        border-bottom: 1px dashed #ccc;
        font-size: 14px;
    }

    .pj-facts b {
        flex: 0 0 auto;
        color: #000;
    }

    .pj-facts span {
        min-width: 0;
        color: #555;
        text-align: right;
        overflow-wrap: anywhere;
    }

/* ===== KÊU GỌI HÀNH ĐỘNG ===== */
.pj-cta {
    padding: 70px 20px;
    background: #111;
    color: #fff;
    text-align: center;
}

    .pj-cta h2 {
        margin-bottom: 12px;
        color: var(--gold);
        font-size: 28px;
        letter-spacing: 3px;
        line-height: 1.4;
    }

    .pj-cta p {
        margin-bottom: 28px;
        color: #ddd;
        overflow-wrap: anywhere;
    }

/* ========================================
   LAPTOP VÀ IPAD NGANG
   1025px - 1200px
======================================== */
@media (min-width: 1025px) and (max-width: 1200px) {
    .pj-section {
        padding: 60px 24px;
    }

    .pj-grid {
        gap: 22px;
    }

    .pj-img {
        height: 260px;
    }

    .pj-info {
        padding: 20px 16px;
    }

    .pj-feature {
        gap: 30px;
    }

    .pj-feature-img {
        height: 450px;
    }

    .pj-feature-body h3 {
        font-size: 25px;
    }
}

/* ========================================
   IPAD DỌC VÀ TABLET
   768px - 1024px
======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .pj-hero-overlay {
        min-height: 330px;
        padding: 35px 24px;
    }

    .pj-hero h1 {
        font-size: 34px;
        letter-spacing: 3px;
    }

    .pj-hero-text {
        font-size: 16px;
    }

    .pj-section {
        padding: 55px 24px;
    }

    .pj-title {
        margin-bottom: 32px;
        font-size: 27px;
        letter-spacing: 3px;
    }

    .pj-filters {
        gap: 10px;
        margin-bottom: 32px;
    }

    .pj-filter {
        padding: 10px 18px;
    }

    .pj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .pj-img {
        height: 280px;
    }

    .pj-info {
        padding: 20px 16px 24px;
    }

        .pj-info h3 {
            font-size: 17px;
        }

    .pj-feature {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .pj-feature-img {
        flex: none;
        width: 100%;
        height: 420px;
    }

    .pj-feature-body {
        width: 100%;
    }

        .pj-feature-body h3 {
            font-size: 25px;
        }

    .pj-cta {
        padding: 55px 24px;
    }

        .pj-cta h2 {
            font-size: 25px;
        }
}

/* ========================================
   ĐIỆN THOẠI LỚN
   481px - 767px
======================================== */
@media (min-width: 481px) and (max-width: 767px) {
    .pj-hero-overlay {
        min-height: 280px;
        padding: 30px 18px;
    }

    .pj-eyebrow {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .pj-hero h1 {
        font-size: 29px;
        letter-spacing: 2px;
    }

    .pj-hero-text {
        font-size: 14px;
        white-space: normal;
    }

    .pj-section {
        padding: 45px 18px;
    }

    .pj-title {
        margin-bottom: 28px;
        font-size: 24px;
        letter-spacing: 2px;
    }

    .pj-filters {
        gap: 8px;
        margin-bottom: 28px;
    }

    .pj-filter {
        padding: 9px 16px;
        font-size: 12px;
    }

    .pj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .pj-img {
        height: 220px;
    }

    .pj-tag {
        top: 12px;
        left: 12px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .pj-img::after,
    .pj-feature-img::after {
        inset: 8px;
    }

    .pj-info {
        padding: 16px 12px 20px;
    }

        .pj-info h3 {
            font-size: 15px;
        }

        .pj-info p {
            font-size: 12px;
        }

    .pj-link {
        font-size: 13px;
    }

    .pj-feature {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .pj-feature-img {
        flex: none;
        width: 100%;
        height: 340px;
    }

    .pj-feature-body h3 {
        font-size: 23px;
    }

    .pj-feature-body > p:not(.pj-eyebrow) {
        font-size: 13px;
    }

    .pj-facts li {
        gap: 12px;
        font-size: 13px;
    }

    .pj-cta {
        padding: 45px 18px;
    }

        .pj-cta h2 {
            font-size: 23px;
            letter-spacing: 2px;
        }
}

/* ========================================
   ĐIỆN THOẠI
   480px TRỞ XUỐNG
======================================== */
@media (max-width: 480px) {
    .pj-hero-overlay {
        min-height: 240px;
        padding: 28px 14px;
    }

    .pj-eyebrow {
        margin-bottom: 10px;
        font-size: 13px;
        letter-spacing: 2px;
    }

        .pj-eyebrow.pj-dark {
            font-size: 11px;
            letter-spacing: 2px;
        }

    .pj-hero h1 {
        margin-bottom: 12px;
        font-size: 25px;
        letter-spacing: 1px;
        line-height: 1.35;
    }

    .pj-hero-text {
        font-size: 13px;
        line-height: 1.7;
        white-space: normal;
    }

    .pj-section {
        padding: 38px 14px;
    }

    .pj-title {
        margin-bottom: 25px;
        padding-bottom: 14px;
        font-size: 21px;
        letter-spacing: 1.5px;
        line-height: 1.45;
    }

    .pj-filters {
        justify-content: center;
        gap: 8px;
        margin-bottom: 25px;
    }

    .pj-filter {
        padding: 8px 13px;
        font-size: 11px;
        letter-spacing: 0;
    }

    /* Dự án hiển thị 1 cột trên điện thoại */
    .pj-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .pj-card {
        width: 100%;
    }

    .pj-img {
        height: 250px;
    }

    .pj-tag {
        top: 14px;
        left: 14px;
        padding: 5px 11px;
        font-size: 10px;
    }

    .pj-img::after,
    .pj-feature-img::after {
        inset: 9px;
    }

    .pj-info {
        padding: 18px 14px 22px;
    }

        .pj-info h3 {
            font-size: 17px;
        }

        .pj-info p {
            font-size: 13px;
        }

    /* Dự án nổi bật xếp dọc */
    .pj-feature {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .pj-feature-img {
        flex: none;
        width: 100%;
        height: 280px;
    }

    .pj-feature-body {
        width: 100%;
    }

        .pj-feature-body h3 {
            margin-bottom: 12px;
            font-size: 21px;
            line-height: 1.45;
        }

        .pj-feature-body > p:not(.pj-eyebrow) {
            margin-bottom: 18px;
            font-size: 13px;
            line-height: 1.8;
        }

    .pj-facts {
        margin-bottom: 22px;
    }

        .pj-facts li {
            gap: 12px;
            padding: 10px 0;
            font-size: 12px;
        }

        .pj-facts b {
            max-width: 45%;
        }

        .pj-facts span {
            flex: 1;
        }

    .pj-btn {
        padding: 12px 24px;
        font-size: 11px;
    }

    .pj-cta {
        padding: 40px 14px;
    }

        .pj-cta h2 {
            font-size: 21px;
            letter-spacing: 1px;
        }

        .pj-cta p {
            margin-bottom: 22px;
            font-size: 13px;
        }
}

/* ========================================
   ĐIỆN THOẠI NHỎ
   360px TRỞ XUỐNG
======================================== */
@media (max-width: 360px) {
    .pj-hero-overlay {
        min-height: 220px;
        padding: 24px 10px;
    }

    .pj-hero h1 {
        font-size: 22px;
    }

    .pj-section {
        padding: 30px 10px;
    }

    .pj-title {
        font-size: 19px;
    }

    .pj-filters {
        gap: 6px;
    }

    .pj-filter {
        padding: 7px 10px;
        font-size: 10px;
    }

    .pj-img {
        height: 220px;
    }

    .pj-info {
        padding: 15px 10px 18px;
    }

    .pj-feature-img {
        height: 230px;
    }

    .pj-feature-body h3 {
        font-size: 19px;
    }

    .pj-facts li {
        font-size: 11px;
    }

    .pj-cta h2 {
        font-size: 19px;
    }
}

/* ===== HỖ TRỢ MÀN HÌNH XOAY NGANG ===== */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
    .pj-hero-overlay {
        min-height: 220px;
        padding: 24px 18px;
    }

    .pj-hero h1 {
        font-size: 26px;
    }

    .pj-feature-img {
        height: 300px;
    }
}
