/* ==========================================================================
   Home page redesign (portal/mega_portal.blade.php).
   Everything is scoped to .hb-home. Colour tokens and .hb-btn come from
   portal-chrome.css, which the portal layout loads on every page.
   ========================================================================== */

.hb-home {
    font-family: var(--hb-font);
    color: var(--hb-text);
}
.hb-home h1,
.hb-home h2,
.hb-home h3,
.hb-home h4,
.hb-home h5 {
    font-family: var(--hb-font);
    color: var(--hb-ink);
}
.hb-home p {
    color: var(--hb-text);
}

/* ---------- Section scaffolding ---------- */
.hb-home .hb-section {
    padding: 72px 0;
}
.hb-home .hb-sec-head {
    margin-bottom: 36px;
}
.hb-home .hb-sec-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}
.hb-home .hb-eyebrow {
    display: block;
    margin-top: 0;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--hb-red);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.hb-home .hb-sec-title {
    margin: 0;
    color: var(--hb-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}
.hb-home .hb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hb-red);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.hb-home .hb-link i {
    transition: transform .2s ease;
}
.hb-home a.hb-link:hover,
.hb-home a:hover .hb-link {
    color: var(--hb-red-dark);
}
.hb-home a.hb-link:hover i,
.hb-home a:hover .hb-link i {
    transform: translateX(3px);
}
.hb-home .hb-empty {
    color: var(--hb-muted);
}

/* ---------- Hero (main site) ---------- */
.hb-home #banner-slider-section.hb-hero {
    height: auto !important;
    min-height: 640px !important;
    padding: 96px 0 72px !important;
    align-items: center;
}
.hb-home #banner-slider-section .banner-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    z-index: 0;
}
/* style.css fixes each slide at 620px; the hero is taller, so stretch the photos to fill it */
.hb-home #banner-slider-section .banner-bg-slide {
    height: 100% !important;
    min-height: 0 !important;
}
.hb-home #banner-slider-section .banner-bg-slider::after {
    background: linear-gradient(90deg, rgba(13, 17, 23, .84) 0%, rgba(13, 17, 23, .6) 55%, rgba(13, 17, 23, .4) 100%);
}
.hb-home .hb-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
}
.hb-home .hb-hero-copy {
    color: #fff;
}
/* Property and CRM panes share one grid cell, so switching slide types never changes the hero height.
   script.js toggles .is-property on the section; the hidden pane uses visibility so it leaves the tab order. */
.hb-home .hb-hero-swap {
    display: grid;
}
.hb-home .hb-hero-pane {
    grid-area: 1 / 1;
    align-self: center;
    min-width: 0;
    transition: opacity .6s ease, visibility .6s ease;
}
.hb-home #banner-slider-section .hb-pane-property,
.hb-home #banner-slider-section.is-property .hb-pane-crm {
    opacity: 0;
    visibility: hidden;
}
.hb-home #banner-slider-section.is-property .hb-pane-property {
    opacity: 1;
    visibility: visible;
}
.hb-home .hb-hero-copy .banner-heading {
    margin: 0;
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}
.hb-home .hb-hero-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(220, 43, 37, .9);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.hb-home .hb-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
/* Outlined button for dark backgrounds */
.hb-home .hb-btn-ghost,
.hb-home .hb-btn-ghost:visited {
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
    color: #fff !important;
}
.hb-home .hb-btn-ghost:hover,
.hb-home .hb-btn-ghost:focus {
    border-color: #fff;
    background: #fff;
    color: var(--hb-ink) !important;
}
/* Outlined red button for light backgrounds */
.hb-home .hb-btn-outline,
.hb-home .hb-btn-outline:visited {
    border-color: var(--hb-red);
    background: #fff;
    color: var(--hb-red) !important;
}
.hb-home .hb-btn-outline:hover,
.hb-home .hb-btn-outline:focus {
    background: var(--hb-red-soft);
    color: var(--hb-red-dark) !important;
}

/* CRM screenshot in a browser-style frame */
.hb-home .hb-crm-shot {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--hb-shadow-lg);
}
.hb-home .hb-crm-shot-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--hb-line);
    background: var(--hb-soft);
}
.hb-home .hb-crm-shot-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d5d8de;
}
.hb-home .hb-crm-shot-bar span:first-child {
    background: var(--hb-red);
}
.hb-home .hb-crm-shot img {
    display: block;
    width: 100%;
    height: auto;
}
/* Two screenshots stacked: the main one top-left, the second overlapping its bottom-right corner.
   padding-bottom (a % of the width) reserves the room the overlapping card hangs into. */
.hb-home .hb-crm-stack {
    position: relative;
    padding-bottom: 14%;
}
.hb-home .hb-crm-stack .hb-crm-shot-main {
    width: 90%;
}
.hb-home .hb-crm-stack .hb-crm-shot-sub {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    border: 1px solid var(--hb-line);
    box-shadow: 0 18px 44px rgba(17, 24, 39, .32);
}
.hb-home .hb-crm-shot-sub .hb-crm-shot-bar {
    padding: 7px 10px;
}
.hb-home .hb-crm-shot-sub .hb-crm-shot-bar span {
    width: 8px;
    height: 8px;
}
/* Hero CRM visuals: one per CRM slide, all in one grid cell so the panel keeps the height of the
   tallest and never jumps; script.js puts .is-active on the one for the current slide. */
.hb-home .hb-crm-visuals {
    display: grid;
}
.hb-home .hb-crm-visual {
    grid-area: 1 / 1;
    align-self: center;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}
.hb-home .hb-crm-visual.is-active {
    opacity: 1;
    visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
    .hb-home .hb-crm-visual {
        transition: none;
    }
}
/* The hero copy on CRM slides stays narrow so the wider screenshots can sit beside it */
.hb-home .hb-pane-crm .hb-hero-text {
    max-width: 430px;
}

@media (prefers-reduced-motion: reduce) {
    .hb-home .hb-hero-pane {
        transition: none;
    }
}
.hb-home .hb-hero-text {
    max-width: 540px;
    margin: 18px 0 24px;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.6;
}
.hb-home .hb-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hb-home .hb-hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 30px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.hb-home .hb-hero-trust li i {
    color: #ff6b65;
}
.hb-home #banner-slider-section .banner-slider-dots {
    bottom: 18px;
    z-index: 3;
}
.hb-home #banner-slider-section .banner-slider-dot {
    width: 10px;
    height: 10px;
    border-width: 0;
    background: rgba(255, 255, 255, .55);
}
.hb-home #banner-slider-section .banner-slider-dot.active {
    width: 24px;
    border-radius: 6px;
    background: var(--hb-red);
}

/* Consultant portal banner */
.hb-home .hb-hero-portal {
    padding: 110px 0 64px;
    background: linear-gradient(rgba(16, 19, 24, .78), rgba(16, 19, 24, .78)),
        url('/assets/images/banner/property-banner-1.webp') center / cover no-repeat;
}
.hb-home .hb-portal-title {
    margin: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
}

/* ---------- Search panel ---------- */
.hb-home .hb-search-panel {
    padding: 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--hb-shadow-lg);
    text-align: left;
}
.hb-home .hb-search-tabs {
    display: flex;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--hb-line);
}
.hb-home .hb-search-tab {
    flex: 1;
    margin-bottom: -1px;
    padding: 10px 4px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--hb-text);
    font-family: var(--hb-font);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.hb-home .hb-search-tab:hover {
    color: var(--hb-red);
}
.hb-home .hb-search-tab.active {
    border-bottom-color: var(--hb-red);
    color: var(--hb-red);
}
.hb-home .hb-search-form .form-control {
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-sm);
    background-color: #fff;
    color: var(--hb-ink);
    font-family: var(--hb-font);
    font-size: 14px;
    box-shadow: none;
}
.hb-home .hb-search-form .form-control:focus {
    border-color: var(--hb-red);
    box-shadow: 0 0 0 3px var(--hb-red-soft);
}
.hb-home .hb-field-icon {
    position: relative;
}
.hb-home .hb-field-icon > i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--hb-red);
}
.hb-home .hb-field-icon .form-control {
    padding-left: 34px;
}
.hb-home .hb-field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.hb-home .hb-field-row-3 {
    grid-template-columns: repeat(3, 1fr);
}
.hb-home .hb-range {
    margin-top: 12px;
}
.hb-home .hb-range label {
    margin: 0;
    color: var(--hb-muted);
    font-size: 13px;
    font-weight: 500;
}
.hb-home .hb-range .irs-bar,
.hb-home .hb-range .irs-from,
.hb-home .hb-range .irs-to,
.hb-home .hb-range .irs-single {
    background: var(--hb-red);
}
.hb-home .hb-search-form .hb-btn-block {
    margin-top: 14px;
    padding: 14px 24px;
}

/* ---------- Categories ---------- */
.hb-home .hb-cat-card {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hb-home .hb-cat-card:hover,
.hb-home .hb-cat-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--hb-shadow-lg);
}
.hb-home .hb-cat-img {
    height: 180px;
    overflow: hidden;
    background: var(--hb-soft);
}
.hb-home .hb-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hb-home .hb-cat-body {
    flex: 1;
    padding: 0 24px 24px;
}
.hb-home .hb-cat-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--hb-shadow);
    color: var(--hb-red);
    font-size: 26px;
}
.hb-home .hb-cat-body h5 {
    margin: 14px 0 6px;
    font-size: 20px;
    font-weight: 700;
}
.hb-home .hb-cat-body p {
    margin: 0 0 14px;
    color: var(--hb-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Consultant portal: property type carousel */
.hb-home .explore-propery .item {
    padding: 24px 12px;
    border: 1px solid var(--hb-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hb-home .explore-propery .item:hover {
    border-color: var(--hb-red);
    box-shadow: var(--hb-shadow);
}
.hb-home .explore-propery .item img {
    width: 64px !important;
    height: 64px;
    object-fit: contain;
}
.hb-home .explore-propery .item h4 {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 600;
}

/* ---------- Welcome + Recent properties ---------- */
.hb-home .hb-welcome-recent {
    background: var(--hb-soft);
}
.hb-home .hb-welcome {
    margin-bottom: 32px;
}
@media (min-width: 992px) {
    .hb-home .hb-welcome {
        position: sticky;
        top: 140px;
        align-self: flex-start;
        padding-right: 24px;
    }
}
.hb-home .hb-welcome .hb-sec-title {
    font-size: 30px;
}
.hb-home .hb-welcome-text {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.7;
}
.hb-home .hb-welcome-sub {
    margin: 24px 0 12px;
    font-size: 17px;
    font-weight: 600;
}
.hb-home .hb-checklist {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.hb-home .hb-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--hb-ink);
    font-size: 15px;
}
.hb-home .hb-checklist li i {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--hb-red);
    color: #fff;
    font-size: 11px;
}
.hb-home .hb-recent .hb-sec-head {
    margin-bottom: 24px;
}

/* Property grid (cards come from propertyCardDesignSquare(..., 'HomeCard')) */
.hb-home .hb-pgrid {
    display: grid;
    gap: 24px;
}
.hb-home .hb-pgrid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hb-home .hb-pgrid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Main site shows the latest 6 next to the welcome column; View All opens the rest */
.hb-home .hb-pgrid-2 > .hb-pcard-col:nth-child(n+7) {
    display: none;
}
.hb-home .hb-pcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: 12px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hb-home .hb-pcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--hb-shadow-lg);
}
.hb-home .hb-pcard-img {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--hb-soft);
}
.hb-home .hb-pcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hb-home .hb-pcard-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--hb-red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.hb-home .hb-pcard-tag:empty {
    display: none;
}
.hb-home .hb-pcard-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}
.hb-home .hb-pcard-title {
    margin: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hb-home .hb-pcard-title a {
    color: var(--hb-ink);
}
.hb-home .hb-pcard-title a:hover {
    color: var(--hb-red);
}
.hb-home .hb-pcard-name,
.hb-home .hb-pcard-address,
.hb-home .hb-pcard-company {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hb-home .hb-pcard-name {
    margin: 2px 0 6px;
    color: var(--hb-muted);
    font-size: 13px;
}
.hb-home .hb-pcard-address {
    margin: 0;
    color: var(--hb-text);
    font-size: 13px;
}
.hb-home .hb-pcard-address::before {
    content: "\f041";
    margin-right: 6px;
    color: var(--hb-red);
    font-family: FontAwesome;
}
.hb-home .hb-pcard-address i {
    display: none;
}
.hb-home .hb-pcard-meta {
    display: flex;
    gap: 8px;
    margin: 12px 0 0;
    padding: 10px 0;
    border-top: 1px solid var(--hb-line);
    border-bottom: 1px solid var(--hb-line);
    list-style: none;
}
.hb-home .hb-pcard-meta li {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--hb-text) !important;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hb-home .hb-pcard-meta li i {
    margin: 0 5px 0 0 !important;
    color: var(--hb-red);
}
.hb-home .hb-pcard-price {
    margin: 12px 0 2px;
    color: var(--hb-ink);
    font-size: 17px;
    font-weight: 700;
}
.hb-home .hb-pcard-price i {
    font-size: 15px !important;
    color: var(--hb-ink) !important;
}
.hb-home .hb-pcard-price small {
    color: var(--hb-muted);
    font-size: 12px !important;
    font-weight: 500;
}
.hb-home .hb-pcard-company {
    margin: 0 0 14px;
    color: var(--hb-muted);
    font-size: 12.5px;
}
/* Missing values are flagged in red by the shared card builder; tone them down here */
.hb-home .hb-pcard [style*="color: red"] {
    color: var(--hb-muted) !important;
    font-weight: 400;
}
.hb-home .hb-pcard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.hb-home .hb-pcard-actions .hb-btn {
    flex: 1;
}
.hb-home .hb-icon-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius-sm);
    background: #fff;
    color: var(--hb-text);
    cursor: pointer;
    transition: all .2s ease;
}
.hb-home .hb-icon-btn:hover,
.hb-home .hb-icon-btn:focus {
    border-color: var(--hb-red);
    background: var(--hb-red);
    color: #fff;
}

/* ---------- Why choose ---------- */
.hb-home .hb-why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    background: #fff;
    list-style: none;
}
.hb-home .hb-why-item {
    padding: 30px 20px;
    text-align: center;
}
.hb-home .hb-why-item + .hb-why-item {
    border-left: 1px solid var(--hb-line);
}
.hb-home .hb-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--hb-red-soft);
    color: var(--hb-red);
    font-size: 24px;
}
.hb-home .hb-why-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}
.hb-home .hb-why-item p {
    margin: 0;
    color: var(--hb-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.hb-home .hb-testimonials {
    background: var(--hb-soft);
}
.hb-home .hb-testimonials .owl-stage {
    display: flex;
}
.hb-home .hb-testimonials .owl-item {
    display: flex;
}
.hb-home .hb-tcard.single-testimonial {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}
.hb-home .hb-tcard-quote {
    color: var(--hb-red);
    font-size: 26px;
}
.hb-home .hb-tcard-text {
    flex: 1;
    margin: 12px 0 20px;
    font-size: 15px;
    line-height: 1.7;
}
.hb-home .hb-tcard-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--hb-line);
}
.hb-home .hb-tcard-person img {
    flex-shrink: 0;
    width: 52px !important;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.hb-home .hb-tcard-person h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
}
.hb-home .single-testimonial:hover h4 {
    color: var(--hb-ink);
}
.hb-home .hb-tcard-person .position {
    margin: 2px 0 0;
    color: var(--hb-muted);
    font-size: 13px;
}
.hb-home .hb-testimonials .owl-dots {
    margin-top: 24px;
    text-align: center;
}
.hb-home .hb-testimonials .owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px;
    background: #cfd3da !important;
    transition: width .2s ease, background-color .2s ease;
}
.hb-home .hb-testimonials .owl-dot.active {
    width: 24px;
    background: var(--hb-red) !important;
}

/* ---------- Blog ---------- */
.hb-home .hb-bcard {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    background: #fff;
    transition: box-shadow .2s ease;
}
.hb-home .hb-bcard:hover {
    box-shadow: var(--hb-shadow-lg);
}
.hb-home .hb-bcard-img {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--hb-soft);
}
.hb-home .hb-bcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.hb-home .hb-bcard:hover .hb-bcard-img img {
    transform: scale(1.04);
}
.hb-home .hb-bcard-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}
.hb-home .hb-bcard-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--hb-muted);
    font-size: 12.5px;
}
.hb-home .hb-bcard-cat {
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--hb-red-soft);
    color: var(--hb-red);
    font-weight: 600;
}
.hb-home .hb-bcard-title {
    display: -webkit-box;
    margin: 10px 0 8px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hb-home .hb-bcard-title a {
    color: var(--hb-ink);
}
.hb-home .hb-bcard-title a:hover {
    color: var(--hb-red);
}
.hb-home .hb-bcard-text {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--hb-muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.hb-home .hb-bcard .hb-link {
    margin-top: auto;
}

/* ---------- Partners ---------- */
.hb-home .hb-partners {
    padding-bottom: 56px;
    background: var(--hb-soft);
}
.hb-home .hb-partners .logos-slider-container {
    gap: 24px;
}
.hb-home .hb-partner {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 84px;
    padding: 14px;
    border: 1px solid var(--hb-line);
    border-radius: 12px;
    background: #fff;
}
.hb-home .hb-partners .logos-slider-container img {
    width: auto;
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .8;
    transition: filter .2s ease, opacity .2s ease;
}
.hb-home .hb-partner:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- SEO content ---------- */
.hb-home .hb-seo .main-title h2.title {
    margin-bottom: 14px;
    color: var(--hb-ink);
    font-family: var(--hb-font);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}
.hb-home .hb-seo u {
    text-decoration: none;
}
.hb-home .hb-seo .card-text.h4 {
    color: var(--hb-text) !important;
    font-family: var(--hb-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}
.hb-home .hb-seo .sub-title {
    margin: 36px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--hb-red);
    color: var(--hb-ink);
    font-family: var(--hb-font);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}
.hb-home .hb-seo .custom-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.hb-home .hb-seo .custom-list-item {
    margin-bottom: 10px;
    padding: 12px 16px 12px 18px;
    border-left: 3px solid var(--hb-red);
    border-radius: 0 var(--hb-radius-sm) var(--hb-radius-sm) 0;
    background: var(--hb-soft);
    color: var(--hb-text);
    font-size: 15px;
    line-height: 1.7;
}
.hb-home .hb-seo .custom-list-item b {
    color: var(--hb-ink);
    font-weight: 600;
}
.hb-home .hb-seo .hb-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.hb-home .hb-seo .hb-feature-grid > .sub-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
.hb-home .hb-seo .hb-feature-grid > .mt-1 {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--hb-line);
    border-radius: 12px;
    background: #fff;
}
.hb-home .hb-seo .feature-heading {
    margin: 0 0 8px;
    color: var(--hb-ink);
    font-family: var(--hb-font);
    font-size: 17px;
    font-weight: 600;
}
.hb-home .hb-seo .feature-description {
    margin: 0;
    color: var(--hb-text);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ---------- FAQ ---------- */
.hb-home .hb-faq {
    background: var(--hb-soft);
}
.hb-home .hb-faq .faq-container {
    max-width: 880px;
    margin: 0 auto;
}
.hb-home .faq-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: 12px;
    background: #fff;
}
/* The question button sits inside an <h4> for SEO; the heading adds no spacing of its own */
.hb-home .faq-heading {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
.hb-home .faq-question {
    gap: 16px;
    padding: 18px 22px;
    border: 0;
    background: #fff;
    color: var(--hb-ink);
    font-family: var(--hb-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.hb-home .faq-question:hover {
    background: var(--hb-soft);
}
.hb-home .faq-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hb-red-soft);
    color: var(--hb-red);
    font-size: 18px;
    line-height: 1;
}
.hb-home .faq-toggle::before {
    content: "+";
}
.hb-home .faq-question[aria-expanded="true"] .faq-toggle::before {
    content: "\2212";
}
.hb-home .faq-answer {
    transition: max-height .3s ease;
}
.hb-home .faq-answer-content {
    padding: 0 22px 20px;
    color: var(--hb-text);
    font-size: 15px;
    line-height: 1.75;
}

/* ---------- Need help band ---------- */
.hb-home .our-cta .cta-banner {
    padding: 56px 0;
    background: linear-gradient(120deg, var(--hb-red) 0%, #a51d18 100%);
}
.hb-home .our-cta .cta-title,
.hb-home .our-cta .cta-text {
    color: #fff;
    font-family: var(--hb-font);
}
.hb-home .our-cta .cta-title {
    font-weight: 700;
}
.hb-home .our-cta .cta-text {
    opacity: .9;
}
.hb-home .our-cta .ud-btn {
    margin-top: 12px;
    border-radius: var(--hb-radius-sm);
    font-family: var(--hb-font);
}
.hb-home .our-cta .ud-btn.btn-transparent {
    border-color: #fff;
    background: transparent;
    color: #fff;
}
.hb-home .our-cta .ud-btn.btn-transparent:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.hb-home .our-cta .ud-btn.btn-dark {
    border-color: #fff;
    background: #fff;
    color: var(--hb-red);
}

/* ---------- Lead modals ---------- */
.hb-home .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--hb-shadow-lg);
    font-family: var(--hb-font);
}
.hb-home .modal-header {
    border-bottom: 1px solid var(--hb-line);
}
.hb-home .modal-title {
    color: var(--hb-ink);
    font-weight: 600;
}
.hb-home .modal-body .form-control {
    border-radius: var(--hb-radius-sm);
}
.hb-home .modal-footer .btn {
    width: 100% !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .hb-home .hb-why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        overflow: visible;
        border: 0;
        background: none;
    }
    .hb-home .hb-why-item,
    .hb-home .hb-why-item + .hb-why-item {
        border: 1px solid var(--hb-line);
        border-radius: 14px;
        background: #fff;
    }
}

@media (max-width: 991px) {
    .hb-home .hb-section {
        padding: 56px 0;
    }
    .hb-home .hb-sec-title {
        font-size: 26px;
    }
    .hb-home #banner-slider-section.hb-hero {
        min-height: 0 !important;
        padding: 88px 0 56px !important;
    }
    .hb-home .hb-hero-copy .banner-heading {
        font-size: 36px;
    }
    .hb-home .hb-search-panel {
        margin-top: 28px;
    }
    .hb-home .hb-pgrid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hb-home .hb-seo .hb-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hb-home .hb-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hb-home .hb-pgrid-2,
    .hb-home .hb-pgrid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .hb-home .hb-portal-title {
        font-size: 30px;
    }
    .hb-home .hb-seo .hb-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hb-home .hb-seo .main-title h2.title {
        font-size: 24px;
    }
    .hb-home .hb-seo .sub-title {
        font-size: 19px;
    }
}

@media (max-width: 575px) {
    .hb-home .hb-hero-copy .banner-heading {
        font-size: 30px;
    }
    .hb-home .hb-hero-text {
        font-size: 15px;
    }
    .hb-home .hb-search-panel {
        padding: 16px;
    }
    .hb-home .hb-field-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hb-home .hb-field-row-3 .hb-field:first-child {
        grid-column: 1 / -1;
    }
    .hb-home .hb-why-grid {
        grid-template-columns: 1fr;
    }
    .hb-home .faq-question {
        padding: 16px;
        font-size: 15px;
    }
    .hb-home .faq-answer-content {
        padding: 0 16px 16px;
    }
}

/* ---------- CRM showcase ---------- */
.hb-home .hb-crm {
    background: var(--hb-soft);
}
.hb-home .hb-crm .hb-sec-title {
    max-width: 480px;
    font-size: 38px;
    line-height: 1.2;
}
.hb-home .hb-crm-text {
    max-width: 520px;
    margin: 16px 0 28px;
    font-size: 16.5px;
    line-height: 1.7;
}
.hb-home .hb-crm-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.hb-home .hb-crm-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.hb-home .hb-crm-icon {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--hb-red-soft);
    color: var(--hb-red);
    font-size: 19px;
}
.hb-home .hb-crm-features h3 {
    margin: 2px 0 5px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.hb-home .hb-crm-features p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.hb-home .hb-crm-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
/* Same height for both buttons */
.hb-home .hb-crm-ctas .hb-btn {
    min-height: 50px;
    padding: 0 28px;
}
.hb-home .hb-crm .hb-crm-shot {
    border-color: var(--hb-line);
}

/* CRM screenshot slider: slides share one grid cell (height never jumps), arrows sit in the
   side padding, dots below. --arrow-room keeps the arrows clear of the screenshots. */
.hb-home .hb-crm-slider {
    --arrow-room: 60px;
    --dots-room: 46px;
    position: relative;
    padding: 0 var(--arrow-room) var(--dots-room);
}
.hb-home .hb-crm-track {
    display: grid;
}
.hb-home .hb-crm-slide {
    grid-area: 1 / 1;
    align-self: center;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}
.hb-home .hb-crm-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.hb-home .hb-crm-arrow {
    position: absolute;
    top: calc((100% - var(--dots-room)) / 2);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    padding: 0;
    border: 1px solid var(--hb-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .14);
    color: var(--hb-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.hb-home .hb-crm-prev {
    left: 0;
}
.hb-home .hb-crm-next {
    right: 0;
}
.hb-home .hb-crm-arrow:hover {
    background: var(--hb-red);
    border-color: var(--hb-red);
    color: #fff;
}
.hb-home .hb-crm-arrow:focus-visible,
.hb-home .hb-crm-dot:focus-visible {
    outline: 2px solid var(--hb-ink);
    outline-offset: 2px;
}
.hb-home .hb-crm-dots {
    position: absolute;
    right: var(--arrow-room);
    bottom: 0;
    left: var(--arrow-room);
    display: flex;
    justify-content: center;
    gap: 4px;
}
/* 22px hit area around a 10px dot */
.hb-home .hb-crm-dot {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.hb-home .hb-crm-dot::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: auto;
    border-radius: 50%;
    background: #d5d8de;
    transition: background-color .2s ease;
}
.hb-home .hb-crm-dot.is-active::before {
    background: var(--hb-red);
}
@media (max-width: 991px) {
    .hb-home .hb-crm .hb-sec-title {
        font-size: 30px;
    }
}
@media (max-width: 575px) {
    .hb-home .hb-crm .hb-sec-title {
        font-size: 26px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .hb-home .hb-crm-features {
        gap: 22px 18px;
    }
    .hb-home .hb-crm-features li {
        gap: 12px;
    }
    .hb-home .hb-crm-features h3 {
        font-size: 15px;
    }
}
@media (min-width: 1280px) {
    /* A little wider than the site container so both the feature grid and the screenshots have room */
    .hb-home .hb-crm > .container {
        max-width: 1240px;
    }
}
@media (min-width: 1200px) {
    /* Let the slider use part of the container gutter so the screenshots stay large */
    .hb-home .hb-crm-slider {
        margin-right: -40px;
    }
}
@media (max-width: 575px) {
    /* No room beside the screenshots: arrows move inside the frame edges */
    .hb-home .hb-crm-slider {
        --arrow-room: 0px;
    }
    .hb-home .hb-crm-prev {
        left: 8px;
    }
    .hb-home .hb-crm-next {
        right: 8px;
    }
    .hb-home .hb-crm-arrow {
        width: 38px;
        height: 38px;
        margin-top: -19px;
        font-size: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hb-home .hb-crm-slide {
        transition: none;
    }
}

/* ---------- How it works ---------- */
.hb-home .hb-flow-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: hbflow;
}
.hb-home .hb-flow-steps li {
    position: relative;
    padding: 26px 18px 22px;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    background: #fff;
    text-align: center;
    counter-increment: hbflow;
}
.hb-home .hb-flow-steps li::before {
    content: counter(hbflow);
    position: absolute;
    top: 12px;
    left: 14px;
    color: var(--hb-muted);
    font-size: 12px;
    font-weight: 700;
}
/* Arrow between steps */
.hb-home .hb-flow-steps li + li::after {
    content: "\f105";
    position: absolute;
    top: 50%;
    left: -16px;
    width: 12px;
    margin-top: -10px;
    color: var(--hb-red);
    font-family: FontAwesome;
    font-size: 20px;
    line-height: 20px;
    text-align: center;
}
.hb-home .hb-flow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--hb-red-soft);
    color: var(--hb-red);
    font-size: 21px;
}
.hb-home .hb-flow-steps h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}
.hb-home .hb-flow-steps p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .hb-home .hb-hero-side {
        margin-top: 28px;
    }
    .hb-home .hb-hero-side .hb-search-panel {
        margin-top: 0;
    }
    .hb-home .hb-crm .col-xl-7 {
        margin-top: 32px;
    }
    .hb-home .hb-flow-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hb-home .hb-flow-steps li + li::after {
        display: none;
    }
}

@media (max-width: 575px) {
    .hb-home .hb-crm-features,
    .hb-home .hb-flow-steps {
        grid-template-columns: minmax(0, 1fr);
    }
    .hb-home .hb-hero-ctas .hb-btn {
        flex: 1 1 auto;
    }
}

/* Wider CRM screenshots in the hero: grow left into the space beside the CRM copy and a little
   to the right into the container gutter. Only on desktop, where the columns sit side by side. */
@media (min-width: 1200px) {
    .hb-home .hb-crm-visuals {
        margin-right: -70px;
        margin-left: -160px;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .hb-home .hb-crm-visuals {
        margin-right: -10px;
        margin-left: -70px;
    }
}
