/* Extracted from resources/views/includes/Home/home-4/jobs4.blade.php */
.featured-jobs-item {
    margin-bottom: 1.5rem;
}

/* Equal Heights Grid and Card Flexbox Alignment */
.jbs-grid-layout {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    width: 100% !important;
    position: relative;
    padding: 1.35rem 1.2rem !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.jbs-grid-layout:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 34px rgba(11, 130, 96, 0.12) !important;
    border-color: rgba(11, 130, 96, 0.25) !important;
}

.right-tags-capt {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.95rem;
}

.right-tags-capt span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.right-tags-capt .featured-text {
    background: rgba(11, 130, 96, 0.12);
    color: #0b8260;
}

.right-tags-capt .urgent {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.right-tags-capt .active-status-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Company Logo Fix */
.company-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

/* Title Fix with fixed height to prevent wrapping discrepancy */
.job-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    height: 44px; /* Holds exactly 2 lines */
    overflow: hidden;
}

.jbs-job-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0f172a !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jbs-job-title:hover {
    color: var(--maincolor, #0b8260) !important;
}

/* Description Text Ellipsis & Height Alignment */
.jbs-grid-job-description p {
    font-size: 13.25px !important;
    line-height: 1.55 !important;
    color: #64748b !important;
    height: 42px; /* Holds exactly 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metadata badges alignment */
.jbs-grid-job-edrs {
    margin-bottom: 0 !important;
    padding-top: 13px;
    border-top: 1px solid #f1f5f9;
}

.jbs-grid-job-edrs-group span {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #f1f5f9 !important;
    font-size: 10.75px !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    padding: 4px 9px !important;
    margin-right: 5px !important;
    margin-bottom: 5px !important;
    display: inline-flex;
    align-items: center;
}

.jbs-grid-job-edrs-group span i {
    font-size: 11px;
}

/* Footer / Apply section styling */
.jbs-grid-job-apply-btns {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.jbs-btn-groups {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.jbs-grid-package-title h5 {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin: 0 !important;
}

.jbs-grid-package-title h5 span {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.btn-main {
    background-color: var(--maincolor, #0b8260) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    white-space: nowrap;
}

.btn-main:hover {
    background-color: #096b4f !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 130, 96, 0.15);
}

/* Alignment of employee header */
.jbs-grid-emp-content {
    align-items: flex-start !important;
}

.jbs-grid-job-caption {
    padding-left: 0.5rem !important;
}

.featured-jobs-footer {
    margin-top: 0.5rem;
}

.featured-jobs-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.7rem;
    min-height: 54px;
    padding: 0.9rem 1.45rem !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0b8260 0%, #0e9b73 100%) !important;
    color: #ffffff !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    box-shadow: 0 14px 28px rgba(11, 130, 96, 0.18);
    border: none !important;
}

.featured-jobs-cta:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(11, 130, 96, 0.24);
}

.featured-jobs-cta-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.featured-jobs-cta-copy small {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.82;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-jobs-cta-copy strong {
    font-size: 0.96rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .featured-jobs-cta {
        width: 100%;
        justify-content: center;
    }

    .featured-jobs-cta-copy {
        align-items: center;
        text-align: center;
    }
}
