/* =================================================================
   Project Hero Component
   Used on single project pages
   ================================================================= */

.project-hero {
    display: flex;
    align-items: end;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.project-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.7) 100%);
}

.project-hero__inner {
    position: relative;
    padding: 28px 32px 48px;
    /* tighter top — breadcrumb takes the space */
    display: flex;
    flex-direction: column;
    /* breadcrumb on top, content+actions below */
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    min-height: inherit;
}

/* ── Breadcrumb ───────────────────────────────────────────────── */
.project-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.project-hero__bc-link {
    color: rgba(255, 255, 255, .70);
    text-decoration: none;
    transition: color .12s ease;
}

.project-hero__bc-link:hover {
    color: #fff;
    text-decoration: underline;
}

.project-hero__bc-sep {
    color: rgba(255, 255, 255, .35);
}

.project-hero__bc-current {
    color: rgba(255, 255, 255, .90);
    /* Truncate if project name is very long */
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Bottom row: content + actions (replaces old __inner flex-row) */
.project-hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: auto;
    /* push to bottom of hero */
}



.project-hero__badge {
    display: inline-flex;
    align-self: flex-start;
    background: #FFC107;
    color: #111;
    font-weight: 900;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Per-status badge colors — khớp với taxonomy slug */
.pj-hero-badge--dang-mo-ban {
    background: #22c55e;
    /* Xanh lá — đang bán */
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, .35);
}

.pj-hero-badge--sap-mo-ban {
    background: #3b82f6;
    /* Xanh dương — sắp mở */
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, .35);
}

.pj-hero-badge--sap-ra-mat {
    background: #8b5cf6;
    /* Tím — sắp ra mắt */
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, .35);
}

.pj-hero-badge--da-ban-giao {
    background: rgba(255, 255, 255, .20);
    /* Kính — đã bàn giao */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
    backdrop-filter: blur(6px);
    box-shadow: none;
}

.pj-hero-badge--hot {
    background: #ef4444;
    /* Đỏ — hot */
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .4);
}



.project-hero__title {
    color: #fff !important;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.project-hero__subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    max-width: 640px;
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.project-hero__actions {
    margin-top: 8px;
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Button Base Styles */
.project-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    font-weight: 700;
    border: 2px solid transparent;
    padding: 14px 28px;
    height: 60px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.project-hero__btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* Primary Button (Yellow) */
.project-hero__btn--primary {
    background: var(--color-accent);
    color: #111;
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

.project-hero__btn--primary:hover {
    background: #FFD54F;
    border-color: #FFD54F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

/* Ghost Button (Transparent with border) */
.project-hero__btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.project-hero__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .project-hero {
        min-height: 400px;
        border-radius: 20px;
    }

    .project-hero__title {
        font-size: 36px;
    }

    .project-hero__subtitle {
        font-size: 16px;
    }

    .project-hero__inner {
        padding: 40px 28px;
    }
}

@media (max-width: 849px) {
    .project-hero {
        min-height: 360px;
        border-radius: 16px;
        margin-top: 32px;
    }

    .project-hero__title {
        font-size: 28px;
    }

    .project-hero__subtitle {
        font-size: 15px;
    }

    .project-hero__inner {
        padding: 32px 20px;
    }

    .project-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .project-hero__btn {
        width: 100%;
        justify-content: center;
    }
}