/* Job Card Styles - Reusable Component */
.job-card-wrapper {
    height: 100%;
}

.job-card {
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.job-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(5, 90, 125, 0.15) !important;
    border-color: rgba(5, 90, 125, 0.2) !important;
}

.job-card-header {
    background: linear-gradient(135deg, rgba(5, 90, 125, 0.05) 0%, rgba(5, 90, 125, 0.02) 100%);
    padding: 1rem 1rem 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.job-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(5, 90, 125, 0.8) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(5, 90, 125, 0.3);
    transition: all 0.3s ease;
}

.job-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 90, 125, 0.4);
}

.job-location {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.job-location i {
    color: var(--primary-color);
    font-size: 1rem;
}

.job-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.job-card:hover .job-title {
    color: var(--primary-color);
}

.job-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.job-card-footer {
    padding: 0.8rem 1rem 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.job-deadline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.deadline-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.deadline-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.deadline-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deadline-date {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.job-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(5, 90, 125, 0.8) 100%) !important;
    color: white !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(5, 90, 125, 0.3) !important;
    border: none !important;
    position: relative !important;
    z-index: 10 !important;
}

.job-btn:hover {
    background: linear-gradient(135deg, rgba(5, 90, 125, 0.9) 0%, var(--primary-color) 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(5, 90, 125, 0.4) !important;
}

.job-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 90, 125, 0.95) 0%, rgba(5, 90, 125, 0.85) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
    border-radius: 10px !important;
}

.job-card:hover .job-card-overlay {
    opacity: 1 !important;
}

.overlay-content {
    color: white;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.job-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.overlay-content span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Clickable Card Link */
.job-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    text-decoration: none;
    border-radius: 10px;
}

.job-card-link:hover {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .job-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .job-btn {
        justify-content: center;
        text-align: center;
    }

    .job-title {
        font-size: 1.1rem;
    }

    .job-card:hover {
        transform: translateY(-6px) scale(1.01) !important;
    }
}

@media (max-width: 576px) {
    .job-card-header,
    .job-card-body,
    .job-card-footer {
        padding: 1rem;
    }

    .job-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .job-description {
        font-size: 0.9rem;
    }
}
