/* Unified service cards — Branding look on every box */

/* Kill leftover module offsets (150px etc), but do not collapse the grid gutter */
.fl-builder-content .fl-module-content:has(.service-card),
.fl-builder-content .fl-html:has(.service-card) {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Space under every service block, including Hosting before the black section */
.fl-builder-content .fl-row:has(.service-card) > .fl-row-content-wrap {
    padding-bottom: 60px !important;
}

/* Pair rows only: two cards side by side with a real 40px seam */
.fl-builder-content .fl-col-group:has(> .fl-col > .fl-col-content > .fl-module .service-card) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 20px 40px;
    margin-bottom: 20px;
}

.fl-builder-content .fl-col-group:has(> .fl-col > .fl-col-content > .fl-module .service-card)::before,
.fl-builder-content .fl-col-group:has(> .fl-col > .fl-col-content > .fl-module .service-card)::after {
    content: none !important;
    display: none !important;
}

.fl-builder-content .fl-col-group:has(> .fl-col > .fl-col-content > .fl-module .service-card) > .fl-col {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 1 calc(50% - 20px) !important;
    align-self: flex-start !important;
    height: auto !important;
    margin: 0 !important;
}

/* Stop Beaver equal-height flex from stretching photos down the page */
.fl-builder-content .fl-col:has(.service-card) > .fl-col-content,
.fl-builder-content .fl-module:has(.service-card),
.fl-builder-content .fl-module-content:has(.service-card) {
    display: block !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: hidden;
    background-repeat: no-repeat !important;
}

.fl-builder-content .service-card {
    display: block !important;
    position: relative;
    width: 100%;
    height: 620px !important;
    max-height: 620px !important;
    overflow: hidden;
    flex: none !important;
    background: #000 !important;
    background-repeat: no-repeat !important;
    text-decoration: none !important;
}

.fl-builder-content .service-card-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 0 !important;
    opacity: 1 !important;
    display: block !important;
}

.fl-builder-content .service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.1) 100%);
}

.fl-builder-content .service-card-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    text-align: center;
}

.fl-builder-content .service-card-title {
    display: block;
    color: #fff !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 800 !important;
    font-size: 38px !important;
    line-height: 1.15;
    margin: 0;
}

.fl-builder-content .service-card-text {
    display: block;
    color: #aaaaab !important;
    font-family: Raleway, sans-serif !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 1.35;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .fl-builder-content .fl-col-group:has(> .fl-col > .fl-col-content > .fl-module .service-card) {
        gap: 16px;
        flex-direction: column;
    }

    .fl-builder-content .fl-col-group:has(> .fl-col > .fl-col-content > .fl-module .service-card) > .fl-col {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .fl-builder-content .service-card {
        height: 420px !important;
        max-height: 420px !important;
    }

    .fl-builder-content .service-card-copy {
        padding: 0 24px;
    }

    .fl-builder-content .service-card-title {
        font-size: 28px !important;
    }

    .fl-builder-content .service-card-text {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .fl-builder-content .service-card {
        height: 375px !important;
        max-height: 375px !important;
    }
}
