/* Home Jobs Grid */
.home-jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Home Job Card */
.home-job-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-job-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.home-job-card:hover {
    transform: translateY(-6px);
}

.home-job-card:hover::after {
    opacity: 1;
}

/* Top Row */
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.logo-title-section {
    display: flex;
    gap: 12px;
    flex: 1;
}

.card-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.card-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.title-location {
    flex: 1;
}

.card-job-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.card-location {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-location i {
    color: #1967d2;
    font-size: 14px;
}

.card-job-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
    flex-shrink: 0;
    background-color: #16a34a;
    white-space: nowrap;
}

.card-job-badge.full-time {
    background-color: #16a34a;
}

.card-job-badge.internship,
.card-job-badge.internship-paid {
    background-color: #22c55e;
}

.card-job-badge.part-time {
    background-color: #3b82f6;
}

.card-job-badge.contract {
    background-color: #8b5cf6;
}

/* Middle Row */
.card-middle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.card-ctc {
    font-size: 15px;
    color: #1967d2;
    font-weight: 700;
}

.card-ctc-value {
    display: inline-block;
}

.card-vacancies {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

/* Bottom Row */
.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-posted-by {
    flex: 1;
}

.card-company-name {
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-posted-text {
    font-size: 13px;
    color: #6b7280;
}

.card-apply-btn {
    background-color: #fd7e14 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.card-apply-btn:hover {
    background-color: #e8690a !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 126, 20, 0.3);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .home-jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .home-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .home-jobs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card-middle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .card-bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .card-apply-btn {
        width: 100%;
    }
}