/* Component: Job Card */
.job-card {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    background: #fff
}

.job-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative
}

.job-card-content {
    background: transparent;
    padding: 30px;
    position: relative;
    z-index: 2
}

/* Badge */
.job-card-badge {
    display: inline-block;
    background: #E9EFF5;
    color: #003262;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease
}

/* Title */
.job-card-title {
    color: #003262;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700;
    margin: 0 0 25px !important;
    text-transform: uppercase;
    transition: all 0.5s ease
}

/* Description */
.job-card-description {
    color: #003262;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
    transition: all 0.5s ease
}

/* Requirements Section */
.job-card-requirements {
    margin: 0 0 25px;
    padding-top: 25px;
    border-top: 1px solid #E5E9ED;
    transition: all 0.5s ease;
}

.job-card-requirements-title {
    color: #003262;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.6;
    margin: 0 0 12px;
    transition: all 0.5s ease
}

.job-card-requirements-text {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.5s ease
}

/* Button */
.job-card-button {
    display: inline-block;
    background: #003262;
    color: #fff;
    padding: 5px 25px;
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    border: 2px solid #003262
}

/* Hover Effects */
.job-card:hover {
    transform: translateY(-5px) scaleY(1.02);
    box-shadow: 0 20px 40px rgba(0, 50, 98, 0.35);
    background: linear-gradient(135deg, #003262 0%, #001a3d 100%)
}

.job-card:hover .job-card-badge {
    background: #7298B9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3)
}

.job-card:hover .job-card-title {
    color: #fff
}

.job-card:hover .job-card-description {
    color: rgba(255, 255, 255, 0.9)
}

.job-card:hover .job-card-requirements {
    border-top-color: rgba(255, 255, 255, 0.2)
}

.job-card:hover .job-card-requirements-title {
    color: #fff
}

.job-card:hover .job-card-requirements-text {
    color: rgba(255, 255, 255, 0.85)
}

.job-card:hover .job-card-button {
    background: #fff;
    color: #003262;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2)
}

/* Container per altezze uguali - approccio semplice */
.container-flex .job-card,
.grid-card-container .job-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.container-flex .job-card-inner,
.grid-card-container .job-card-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

.container-flex .job-card-content,
.grid-card-container .job-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Lo spazio che si espande è tra requisiti e pulsante */
.container-flex .job-card-requirements,
.grid-card-container .job-card-requirements {
    flex: 1 !important;
}

/* Badge e pulsante rimangono inline (non full width) */
.container-flex .job-card-badge,
.grid-card-container .job-card-badge {
    align-self: flex-start !important;
}

.container-flex .job-card-button,
.grid-card-container .job-card-button {
    align-self: flex-start !important;
}

/* Assicura che il wrapper WPBakery supporti flexbox */
.container-flex .wpb_wrapper,
.grid-card-container .wpb_wrapper {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.container-flex > *,
.grid-card-container > * {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .job-card-content {
        padding: 25px 20px
    }

    .job-card-title {
        font-size: 24px !important
    }

    .job-card-description {
        font-size: 15px;
        margin-bottom: 20px
    }

    .job-card-requirements-title {
        font-size: 15px
    }

    .job-card-requirements-text {
        font-size: 14px
    }

    .job-card-button {
        padding: 12px 25px;
        font-size: 13px
    }
}

