/* Job Listing Styles */
.search-form {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #000;
    background-color: #f0f0f0;
}

.search-form form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #000;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.search-input:focus {
    outline: none;
    background-color: #ffffcc;
}

.search-button {
    padding: 10px 20px;
    border: 2px solid #000;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.search-button:hover {
    background-color: #333;
}

.clear-button {
    padding: 10px 20px;
    border: 2px solid #000;
    background-color: #fff;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.clear-button:hover {
    background-color: #f0f0f0;
}

.search-results {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.job-list {
    margin-top: 20px;
}

.job-item {
    border: 1px solid #000;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.job-item:hover {
    background-color: #f9f9f9;
}

.job-header {
    margin-bottom: 12px;
}

.job-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
}

.job-company {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.job-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
}

.job-meta span {
    white-space: nowrap;
}

.job-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #333;
}

.job-skills {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    display: inline-block;
    border: 1px solid #000;
    padding: 4px 10px;
    font-size: 11px;
    background-color: #fff;
    white-space: nowrap;
}

.job-link {
    display: inline-block;
    border: 2px solid #000;
    padding: 8px 16px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    background-color: #fff;
}

.job-link:hover {
    background-color: #000;
    color: #fff;
}

.job-link.apply-btn {
    background-color: #000;
    color: #fff;
}

.job-link.apply-btn:hover {
    background-color: #333;
}

.no-jobs {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.job-company-logo {
    width: 50px;
    height: 50px;
    border: 1px solid #000;
    margin-bottom: 10px;
}

.see-more-link {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.see-more-link:hover {
    background-color: #ffffcc;
}

/* NEW Badge Styling - Modern Design */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF3B3B 0%, #FF0080 50%, #FF3B3B 100%);
    background-size: 200% 200%;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow:
        0 0 20px rgba(255, 0, 128, 0.6),
        0 0 40px rgba(255, 0, 128, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: shake-pulse 2s ease-in-out infinite, glow-pulse 1.5s ease-in-out infinite;
    white-space: nowrap;
    margin-left: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.new-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shake-pulse {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    2%,
    6%,
    10% {
        transform: translateX(-3px) rotate(-3deg);
    }

    4%,
    8% {
        transform: translateX(3px) rotate(3deg);
    }

    12%,
    88% {
        transform: translateX(0) rotate(0deg);
    }

    90%,
    94%,
    98% {
        transform: translateX(-3px) rotate(-3deg);
    }

    92%,
    96% {
        transform: translateX(3px) rotate(3deg);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow:
            0 0 20px rgba(255, 0, 128, 0.6),
            0 0 40px rgba(255, 0, 128, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow:
            0 0 30px rgba(255, 0, 128, 0.8),
            0 0 60px rgba(255, 0, 128, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    border: 1px solid #000000;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    color: #000000;
    background-color: #ffffff;
}

.pagination a:hover {
    background-color: #000000;
    color: #ffffff;
}

.pagination .active {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .job-title {
        font-size: 16px;
        flex: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .new-badge {
        font-size: 8px;
        padding: 3px 8px;
        margin-left: 5px;
        border-radius: 12px;
        box-shadow:
            0 0 10px rgba(255, 0, 128, 0.5),
            0 0 20px rgba(255, 0, 128, 0.3),
            inset 0 0 5px rgba(255, 255, 255, 0.2);
    }

    .job-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .job-meta {
        font-size: 11px;
    }

    .skill-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}