/* Hire On-Demand Section - Home Page Standard Styling */
.hire-on-demand {
    width: 100%;
    background-color: #000000;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.on-demand-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    text-align: center;
}

.on-demand-header {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto 30px auto;
}

.on-demand-title {
    font-size: 42px;
    line-height: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
}

.on-demand-title .text-primary {
    color: var(--color-primary, #54b248);
}

.on-demand-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 1070px;
    margin: 0 auto;
    font-weight: 500;
    font-family: var(--font-body, 'Inter', sans-serif);
}

/* 5 Column Grid Aligned with Home Standards */
.on-demand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 35px 25px; /* Increased gap to accommodate shadow effect */
    width: 100%;
    padding-bottom: 20px;
}

.role-card-wrapper {
    position: relative;
    z-index: 1;
}

.role-card {
    background-color: #ffffff;
    border: 2.5px dashed var(--color-primary, #54b248);
    border-radius: 10px;
    padding: 25px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    cursor: default;
}

.role-card-shadow {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    background-color: #888888; /* Grey shadow as requested */
    border-radius: 10px;
    z-index: 0;
    transition: transform 0.3s ease;
}

/* Stacked Hover Effect like ServiceOurMapBim */
.role-card-wrapper:hover .role-card {
    transform: translate(-3px, -3px);
}

.role-card-wrapper:hover .role-card-shadow {
    transform: translate(3px, 3px);
}

.role-circle {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #e0e0e0 0%, #d1d1d1 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.role-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: var(--font-body, 'Lexend Deca', sans-serif);
    line-height: 1.2;
}

/* Responsiveness */
@media (max-width: 1300px) {
    .on-demand-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .on-demand-title {
        font-size: 34px;
        line-height: 1.25;
    }
    
    .on-demand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .on-demand-container {
        padding: 0 20px;
    }

    .on-demand-title {
        font-size: 28px;
    }

    .on-demand-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .role-card-shadow {
        top: 6px;
        left: 6px;
    }

    .role-card {
        padding: 20px 15px;
    }

    .role-name {
        font-size: 17px;
    }
}