body:has(.hb-404) .page_header,
body:has(.hb-404) #Page-title {
    display: none !important;
}
.hb-404 {
    background: #eef1f6;
    padding: 40px 16px 80px;
    min-height: 64vh;
}
.hb-404 .container {
    max-width: 1180px;
}
.hb-404-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(300px, .92fr);
    gap: 12px 36px;
    align-items: center;
    direction: ltr;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .07);
    padding: 28px 36px 28px 16px;
    overflow: hidden;
}
.hb-404-hero-media {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hb-404-hero-media img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: transparent;
}
.hb-404-hero-copy {
    padding: 12px 8px 12px 4px;
}
.hb-404-kicker {
    margin: 0 0 10px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
}
.hb-404-hero-copy h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}
.hb-404-sub {
    margin: 0 0 24px;
    max-width: 28em;
    font-size: 16px;
    line-height: 1.7;
    color: #8b8ba3;
}
.hb-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
.hb-404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 168px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
}
.hb-404-btn--primary {
    background: #673DE6;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(103, 61, 230, .28);
}
.hb-404-btn--primary i {
    font-size: 18px;
    line-height: 1;
}
.hb-404-btn--ghost {
    background: #fff;
    color: #673DE6 !important;
    border: 1.5px solid #673DE6;
}
.hb-404-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.hb-404-links a {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}
.hb-404-links a:hover {
    color: #673DE6;
}
.hb-404-links i {
    margin-inline-end: 6px;
}

@media (max-width: 991px) {
    .hb-404-hero {
        grid-template-columns: 1fr;
        padding: 20px 18px 28px;
        text-align: center;
    }
    .hb-404-hero-media {
        order: -1;
        min-height: 0;
    }
    .hb-404-hero-media img {
        max-height: 240px;
        margin: 0 auto;
    }
    .hb-404-hero-copy {
        padding: 0;
    }
    .hb-404-hero-copy h1,
    .hb-404-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hb-404-actions,
    .hb-404-links {
        justify-content: center;
    }
    .hb-404-hero-copy h1 { font-size: 24px; }
}
