/* Jobs Page Styles */

/* Hero Section */
.jobs-hero {
    background: linear-gradient(rgba(45, 27, 78, 0.85), rgba(45, 27, 78, 0.85)), url('../Images/Jobs/HeroBg.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.jobs-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a3e635;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(107, 45, 143, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 1;
}

.search-field select {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.btn-search {
    padding: 0.9rem 2.5rem;
    background: #fff;
    color: #6b46c1;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-search:hover {
    background: #a3e635;
    color: #333;
    transform: translateY(-2px);
}

/* Jobs Listing Section */
.jobs-listing {
    background: url('../Images/Jobs/JobsBg.png') center/cover no-repeat;
    padding: 3rem 2rem;
    min-height: 100vh;
}

.jobs-listing .container {
    max-width: 1200px;
    margin: 0 auto;
}

.jobs-count {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Job Card */
.job-card {
    background: rgba(107, 45, 143, 0.7);
    border-radius: 30px;
    padding: 2.5rem;
    color: #fff;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(107, 45, 143, 0.8);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.job-header h3 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.job-type {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-type.full-time {
    background: #fff;
    color: #333;
}

/* Salary Box */
.salary-box {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.salary-label {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.salary-amount {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

/* Job Description */
.job-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    flex-grow: 1;
    text-align: center;
}

/* Job Tags */
.job-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: #fff;
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.tag::before {
    content: "";
    display: none;
}

/* Job Footer */
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.posted-time {
    font-size: 0.95rem;
    opacity: 0.9;
}

.btn-apply {
    background: #fff;
    color: #6b2d8f;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-apply:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .jobs-hero {
        height: 250px;
    }
    
    .jobs-hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .search-box {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .search-field {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
