/* css/bolsa.css */

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 80px 0 60px;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- Search Section --- */
.search-section {
    background: var(--bg-light);
    padding: 40px 0;
}

.search-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-container {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.search-input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.search-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    padding: 12px 40px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* --- Listings --- */
.jobs-listings {
    padding: 40px 0 80px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.job-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 5px solid var(--accent-color);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.job-content {
    padding: 25px;
    flex: 1;
}

.job-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.job-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.job-company {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.job-details {
    margin-bottom: 1.5rem;
}

.job-details p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.job-details i {
    color: var(--accent-color);
    width: 16px;
    text-align: center;
}

.job-actions {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.job-actions .btn-primary {
    width: 100%;
    display: block;
}

/* --- Join CTA --- */
.join-cta {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.join-cta h2 {
    color: white;
}

.join-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Application Modal Specifics --- */
.modal-content.application-modal {
    max-width: 600px;
}

.application-form .form-group {
    margin-bottom: 20px;
}

.application-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.application-form input,
.application-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.application-form textarea {
    resize: vertical;
    min-height: 100px;
}

.application-form input:focus,
.application-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.captcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Custom File Upload */
.file-upload-group {
    position: relative;
}

.file-upload-label {
    cursor: pointer;
    display: block;
}

.file-upload-design {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-upload-design:hover {
    border-color: var(--accent-color);
    background-color: #f1f5f9;
}

.file-upload-design.active {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

.file-upload-design i {
    font-size: 2rem;
    color: #94a3b8;
}

.file-upload-design span {
    color: #475569;
    font-weight: 500;
}

.file-upload-design small {
    color: #94a3b8;
}

/* Hide default input but keep it functional */
.file-upload-label input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}