/* Careers Page Styles */

.page-header .inner-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header .inner-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Job Listings */
.job-list {
    padding: 60px 0;
}
.job-list .container{
    padding: 20px;
    background: #f9fafc;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.job-listing {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.job-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.job-listing .card {
    border: none;
    border-radius: 8px;
}

.job-listing .card-body {
    padding: 30px;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.95rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-meta i {
    color: rgba(113, 6, 6, 1);
    font-size: 0.9em;
}

.job-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-common {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-common:hover {
    background-color: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Application Modal */
#applyModal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

#applyModal .modal-header {
    background: linear-gradient(90deg, rgba(113, 6, 6, 1) 14%, rgba(163, 15, 15, 1) 55%, rgba(113, 6, 6, 1) 87%);
    color: white;
    border: none;
    padding: 20px 25px;
}

#applyModal .modal-title {
    font-weight: 600;
    color: white;
}

#applyModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#applyModal .btn-close:hover {
    opacity: 1;
}

#applyModal .modal-body {
    padding: 25px;
}

#applyModal .form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

#applyModal .form-control {
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#applyModal .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

#applyModal .form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

#applyModal .modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-header .inner-header h3 {
        font-size: 2rem;
    }
    
    .job-listing .card-body {
        padding: 20px;
    }
    
    .job-title {
        font-size: 1.3rem;
    }
    
    .job-meta {
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .btn-common {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-reviewed {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-shortlisted {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-rejected {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Animation for success message */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: fadeIn 0.3s ease-out;
}

/* Loading spinner for buttons */
.btn .spinner-border {
    margin-right: 8px;
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Form validation styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}
