/* Careers Page Styles */

/* Careers Header Banner */
.careers-header {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.6);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 73, 94, 0.65) 100%);
    z-index: 2;
}

.careers-header .container {
    position: relative;
    z-index: 3;
}

.header-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.careers-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.careers-header p {
    font-size: 1.4rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .careers-header {
        min-height: 400px;
    }
    
    .careers-header h1 {
        font-size: 2.5rem;
    }
    
    .careers-header p {
        font-size: 1.2rem;
    }
    
    .header-image img {
        object-position: 60% center;
    }
}

@media (max-width: 480px) {
    .careers-header {
        min-height: 350px;
    }
    
    .careers-header h1 {
        font-size: 2rem;
    }
    
    .careers-header p {
        font-size: 1.1rem;
    }
    
    .header-image img {
        object-position: 55% center;
    }
}

/* Company Requirements */
.company-requirements {
    padding: 80px 0;
    background: white;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.requirement-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.requirement-card:hover {
    transform: translateY(-10px);
    border-color: #8B4513;
    box-shadow: 0 15px 40px rgba(139,69,19,0.15);
}

.requirement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.requirement-icon i {
    font-size: 2rem;
    color: white;
}

.requirement-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.requirement-card p {
    color: #666;
    line-height: 1.6;
}

/* Why Join Us */
.why-join-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139,69,19,0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Available Jobs */
.available-jobs {
    padding: 80px 0;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.job-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139,69,19,0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.job-title-section h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.job-meta i {
    color: #8B4513;
}

.job-badge {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.job-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.job-description h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.job-description ul {
    list-style: none;
    margin-bottom: 25px;
}

.job-description ul li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-description ul li::before {
    content: "✓";
    color: #8B4513;
    font-weight: bold;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139,69,19,0.3);
}

/* Application Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #8B4513;
    margin-bottom: 30px;
    font-weight: 600;
}

.application-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.application-form input,
.application-form select,
.application-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
    outline: none;
    border-color: #8B4513;
}

/* Success Message */
.success-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.success-message.show {
    display: flex;
}

.success-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-content i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.success-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.success-content .btn {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.success-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139,69,19,0.3);
}

@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .application-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .success-content {
        padding: 40px 30px;
    }
}
