/* Estilo Específico para a Página de Empregos - Renal Expert */

:root {
    --primary-color: #24417c;
    --secondary-color: #2C4A7C;
    --text-color: #666;
    --bg-light: #F7FAFD;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

.jobs-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
    border-bottom: 5px solid #e0e0e0;
}

.jobs-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.jobs-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.jobs-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Barra de Busca Estilo Clean */
.search-bar-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Borda com gradiente usando pseudo-elemento */
.search-bar-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #2196F3, #FFC107, #4CAF50);
    border-radius: 52px;
    z-index: -1;
}

.search-field {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 20px;
    position: relative;
}

.search-field:first-child {
    border-right: 1px solid #eee;
}

.search-field i {
    color: #999;
    margin-right: 12px;
    font-size: 18px;
}

.search-field input,
.search-field select {
    border: none;
    outline: none;
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
    color: #333;
    background: transparent;
    cursor: pointer;
    appearance: none;
    /* Remove seta padrão */
}

.search-field select {
    padding-right: 20px;
}

.search-field .clear-btn {
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    display: none;
}

.search-field input:not(:placeholder-shown)+.clear-btn {
    display: block;
}

.search-btn-main {
    background: #0061f2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
    margin-left: 10px;
}

.search-btn-main:hover {
    background: #004dc0;
}

.search-btn-main i {
    font-size: 16px;
}

.jobs-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.job-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(36, 65, 124, 0.15);
    border-color: var(--primary-color);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.job-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #f0f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-icon img {
    width: 30px;
    height: 30px;
}

.job-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.job-card .company {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.job-card .location {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.job-card .description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 8px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
}

.job-card:hover .job-btn {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-bar-container {
        display: flex !important;
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 10px !important;
        height: auto !important;
        width: 100%;
        max-width: 100%;
    }

    .search-bar-container::before {
        border-radius: 22px !important;
    }

    .search-field {
        width: 100% !important;
        padding: 12px 15px !important;
        border-right: none !important;
        border-bottom: 1px solid #eee !important;
    }

    .search-field select {
        width: 100% !important;
        height: 45px;
    }

    .search-field input {
        height: 45px;
    }

    .search-field:last-of-type {
        border-bottom: none;
    }

    .search-btn-main {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .jobs-hero h1 {
        font-size: 1.8rem;
    }

    .jobs-hero {
        padding: 60px 15px;
    }

    .jobs-hero p {
        font-size: 1rem;
    }
}