/* Section spacing */
.staffing-services-section {
    padding-bottom: 120px;
    padding-top: 48px;
    position: relative;
    z-index: 10;
}

@media (max-width:991px) {
    .staffing-services-section {
        padding-bottom: 60px;
    }
}

@media (max-width:767px) {
    .staffing-services-section {
        padding-bottom: 60px;
    }
}

/* Card */
.service-card-modern {
    background: black;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    transition: .3s ease;
    position: relative;
    border-left: 5px solid red;
    height: 100%;
    margin-bottom: 30px;
}

@media (max-width:1199px) {
    .service-card-modern {
        padding: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width:991px) {
    .service-card-modern {
        padding: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width:767px) {
    .service-card-modern {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Accent colors */
.service-card-modern.service-card-2 {
    border-left-color: blue;
}

.service-card-modern.service-card-3 {
    border-left-color: green;
}

.service-card-modern.service-card-2 .service-title::before {
    content: "\f2b5";
    /* handshake */
}

.service-card-modern.service-card-3 .service-title::before {
    content: "\f06c";
    /* leaf */
}

/* Title + icon (emoji badge) */
.service-card-modern .service-title {
    position: relative;
    margin: 0 0 1rem 0;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    /* Leave room for the badge */
    padding-left: 76px;
    /* desktop */
    min-height: 56px;
    /* at least icon height */
    display: block;
    /* keep normal text flow */
    word-break: break-word;
    font-size: 1.2rem;
}

/* Vertically center the badge relative to the full heading block */
.service-card-modern .service-title::before {
    content: "\f508";
    /* Font Awesome user-tie unicode */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #667eea;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.service-card-modern .service-description {
    color: #b3b3b3 !important;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    flex-grow: 1;
    margin-top: 6px;
    padding-left: 4px;
}

/* .service-icon-modern {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 1.6rem;
    color: #ffffff;
    vertical-align: middle;
} */

/* Per-card icon styles */


/* Responsive sizing for title + badge */
@media (max-width:1199px) {
    .service-card-modern .service-title {
        font-size: 1.1rem;
        padding-left: 68px;
        min-height: 50px;
    }

    .service-card-modern .service-title::before {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 10px;
    }
}

@media (max-width:991px) {
    .service-card-modern .service-title {
        font-size: 1.05rem;
        padding-left: 64px;
        min-height: 46px;
    }

    .service-card-modern .service-title::before {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }
}

@media (max-width:767px) {
    .service-card-modern .service-title {
        font-size: 1rem;
        padding-left: 58px;
        min-height: 42px;
    }

    .service-card-modern .service-title::before {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 9px;
    }
}

/* Paragraph */
.service-card-modern p {
    color: #6c757d;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    font-size: .95rem;
}

/* Hover */
.service-card-modern:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
    transform: translateY(-5px);
}

/* Mobile column spacing inside section */
@media (max-width:991px) {
    .staffing-services-section .col-lg-4 {
        margin-bottom: 30px;
    }

    .staffing-services-section .col-lg-4:last-child {
        margin-bottom: 0;
    }

    .staffing-services-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.service-card .service-title {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.08rem;
    margin: 0;
    text-align: left;
    letter-spacing: 0.5px;
}

.service-card .service-description {
    color: #b3b3b3 !important;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
    flex-grow: 1;
    margin-top: 6px;
    padding-left: 4px;
}

/* Optional: “design2b” cards from your earlier snippet (unchanged aside from responsiveness) */
/* ========== Layout & spacing ========== */
.design2b {
    background: transparent;
    padding: 4rem 2rem;
    /* even padding around the section */
}

/* Make gutters consistent on all sides */
.design2b .row {
    margin: -14px;
    /* pull in outer gutters */
}

.design2b .row>[class*="col-"] {
    padding: 14px;
    /* equal gap between cards */
    display: flex;
    /* let cards stretch equally */
}

/* ========== Card ========== */
.design2b .service-card {
    background: #fff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(148, 163, 184, .10);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    width: 100%;
    max-width: none;
    /* let Bootstrap columns decide width */
    padding: 1.75rem 1.5rem;

    /* Equal height cards */
    display: grid;
    /* header row + content row */
    grid-template-columns: 72px 1fr;
    /* icon | title */
    grid-auto-rows: auto;
    grid-column-gap: 16px;
    grid-row-gap: 10px;
}

/* Top gradient strip on hover */
.design2b .service-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #6366f1);
    border-radius: 24px 24px 0 0;
    transform: scaleX(0);
    transition: transform .3s ease;
}

.design2b .service-card:hover::before {
    transform: scaleX(1);
}

.design2b .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(148, 163, 184, .25);
}

/* ========== Icon perfectly aligned with heading ========== */
.design2b .service-icon {
    grid-column: 1;
    /* first column */
    grid-row: 1;
    /* header row */
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /* remove bottom gap – we’re in a grid */
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.design2b .service-card:hover .service-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
}

.design2b .service-icon svg {
    width: 36px;
    height: 36px;
    fill: #3b82f6;
}

/* Heading lives in the same row as icon */
.design2b .service-title {
    grid-column: 2;
    /* second column */
    grid-row: 1;
    /* header row */
    align-self: center;
    /* vertically center with the icon */
    margin: 0;
    /* no extra spacing above/below */
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .2px;
}

/* Description spans full width below header */
.design2b .service-description {
    grid-column: 1 / -1;
    /* span both columns */
    grid-row: 2;
    /* second row */
    color: #475569;
    font-size: .98rem;
    line-height: 1.7;
    margin: .35rem 0 0 0;
}

/* ========== Responsive tweaks ========== */
@media (max-width: 1199.98px) {
    .design2b .service-card {
        grid-template-columns: 60px 1fr;
        padding: 1.5rem 1.25rem;
    }

    .design2b .service-title {
        font-size: 1.125rem;
    }

    .design2b .service-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767.98px) {
    .design2b {
        padding: 3rem 1rem;
    }

    .design2b .row {
        margin: -10px;
    }

    .design2b .row>[class*="col-"] {
        padding: 10px;
    }

    .design2b .service-card {
        grid-template-columns: 56px 1fr;
        /* still icon + title on one row */
        grid-column-gap: 12px;
        padding: 1.25rem 1rem;
    }

    .design2b .service-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .design2b .service-title {
        font-size: 1.05rem;
    }

    .design2b .service-description {
        font-size: .95rem;
    }
}

/* Optional: keep a minimum height so very short cards match taller ones nicely */
@supports (min-height: 1px) {
    .design2b .service-card {
        min-height: 240px;
    }
}