.flatmate-home-page {
    background: #f5f8fb;
    padding: 32px 0;
    min-height: 80vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.flatmate-home-container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.flatmate-home-hero,
.flatmate-home-audience,
.flatmate-home-section,
.flatmate-home-split > div,
.flatmate-home-relate {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(16,24,40,.08);
}

.flatmate-home-hero {
    min-height: 420px;
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    gap: 20px;
    padding: 48px 34px;
    margin-bottom: 26px;
    text-align: center;
}

.flatmate-hero-content h1 {
    margin: 0 0 8px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: .95;
    color: #1f2933;
    font-weight: 900;
}

.flatmate-hero-content h2 {
    margin: 0 0 16px;
    color: #c92b2b;
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 900;
}

.flatmate-hero-content p {
    margin: 0 auto 24px;
    max-width: 520px;
    color: #667085;
    font-size: 18px;
}

.flatmate-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.flatmate-hero-actions a,
.flatmate-audience-card a,
.flatmate-section-head a,
.flatmate-relate-grid a {
    text-decoration: none !important;
}

.flatmate-hero-actions a {
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 900;
}

.flatmate-hero-actions .primary {
    background: #c92b2b;
    color: #fff !important;
}

.flatmate-hero-actions .secondary {
    background: #f8eaea;
    color: #c92b2b !important;
}

.flatmate-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flatmate-hero-visual img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

/*.flatmate-hero-visual.right {*/
/*    background: #e9f4f8;*/
/*}*/

.flatmate-home-audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 22px;
    margin-bottom: 26px;
}

.flatmate-audience-card {
    border-radius: 20px;
    padding: 26px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flatmate-audience-card.red {
    background: #c92b2b;
    color: #fff;
}

.flatmate-audience-card.blue {
    background: #eaf4f8;
    color: #1f2933;
}

.flatmate-audience-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 18px;
}

.flatmate-audience-card h3 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 900;
    color: inherit;
}

.flatmate-audience-card p {
    margin: 0 0 18px;
    opacity: .85;
}

.flatmate-audience-card a {
    display: inline-flex;
    width: fit-content;
    padding: 11px 16px;
    border-radius: 999px;
    background: #fff;
    color: #c92b2b !important;
    font-weight: 900;
}

.flatmate-home-section,
.flatmate-home-relate {
    padding: 28px;
    margin-bottom: 26px;
}

.flatmate-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.flatmate-section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    color: #1f2933;
    font-weight: 900;
}

.flatmate-section-head a {
    color: #c92b2b !important;
    font-weight: 900;
    white-space: nowrap;
}

.flatmate-home-listings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.flatmate-home-listing-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16,24,40,.06);
    transition: .2s ease;
}

.flatmate-home-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16,24,40,.12);
}

.flatmate-home-listing-card a {
    display: block;
    text-decoration: none !important;
}

.flatmate-home-listing-image {
    height: 190px;
    position: relative;
    background: #eef2f6;
    overflow: hidden;
}

.flatmate-home-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flatmate-home-listing-image span {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8792a2;
    font-weight: 800;
}

.flatmate-home-listing-image em {
    position: absolute;
    top: 10px;
    left: 10px;
    font-style: normal;
    background: #e8f7ee;
    color: #198754;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.flatmate-home-listing-image strong {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: #c92b2b;
    color: #fff;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.flatmate-home-listing-body {
    padding: 15px;
}

.flatmate-home-listing-body h3 {
    margin: 0 0 8px;
    color: #1f2933;
    font-size: 18px;
    line-height: 1.3;
    min-height: 46px;
}

.flatmate-home-listing-body p {
    margin: 0 0 8px;
    color: #1f2933;
    font-size: 19px;
    font-weight: 900;
}

.flatmate-home-listing-body p span {
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.flatmate-home-listing-body small {
    color: #667085;
    font-weight: 700;
}

.flatmate-home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 26px;
}

.flatmate-home-split > div {
    padding: 28px;
}

.flatmate-mini-grid,
.flatmate-relate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.flatmate-mini-grid article,
.flatmate-relate-grid article {
    background: #f8fafc;
    border-radius: 18px;
    padding: 22px;
}

.flatmate-mini-grid article span {
    display: inline-flex;
    font-size: 32px;
    margin-bottom: 14px;
}

.flatmate-mini-grid article h3,
.flatmate-relate-grid article p {
    margin: 0 0 10px;
    color: #1f2933;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.flatmate-mini-grid article p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.flatmate-mini-grid .story {
    background: #fff8e6;
}

.flatmate-relate-grid {
    grid-template-columns: repeat(3, 1fr);
}

.flatmate-relate-grid article {
    background: #eaf4f8;
}

.flatmate-relate-grid a {
    display: inline-flex;
    margin-top: 8px;
    background: #c92b2b;
    color: #fff !important;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
}

@media (max-width: 1050px) {
    .flatmate-home-hero {
        grid-template-columns: 1fr;
    }

    .flatmate-home-hero {
    grid-template-columns: 1fr;
}

.flatmate-hero-visual img {
    max-width: 180px;
    margin: 0 auto;
}

    .flatmate-home-listings {
        grid-template-columns: repeat(2, 1fr);
    }

    .flatmate-home-audience,
    .flatmate-home-split,
    .flatmate-relate-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    
    .flatmate-hide-mobile {
        display: none;
    }
    
    .flatmate-home-page {
        padding: 24px 0;
    }

    .flatmate-home-container {
        width: min(100% - 24px, 1240px);
    }

    .flatmate-home-hero {
        min-height: auto;
        padding: 38px 20px;
        border-radius: 22px;
    }

    .flatmate-hero-content p {
        font-size: 16px;
    }

    .flatmate-hero-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .flatmate-home-audience,
    .flatmate-home-section,
    .flatmate-home-split > div,
    .flatmate-home-relate {
        padding: 18px;
        border-radius: 20px;
    }

    .flatmate-home-listings,
    .flatmate-mini-grid {
        grid-template-columns: 1fr;
    }

    .flatmate-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}