/* Careers Page Styles */

/* Hero Section */
.careers-hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.careers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.careers-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.careers-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(110, 142, 251, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(110, 142, 251, 0.3);
}

.benefit-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Open Positions Section */
.open-positions {
    padding: 80px 0;
}

.position-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
}

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

.position-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.position-header {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.position-type {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.position-type.full-time {
    background: #e3f2fd;
    color: #1976d2;
}

.position-type.part-time {
    background: #fff3e0;
    color: #ef6c00;
}

.position-details {
    padding: 20px 25px;
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.position-details i {
    margin-left: 5px;
    color: #6e8efb;
}

.position-description {
    padding: 20px 25px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.position-footer {
    padding: 15px 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.view-details {
    color: #6e8efb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-details:hover {
    color: #4a6cf7;
    text-decoration: underline;
}

/* Application Form Section */
.application-form {
    padding: 80px 0;
    background: #f9f9ff;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
}

.application-form form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.file-upload {
    position: relative;
    margin-top: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f5f7ff;
    border: 2px dashed #6e8efb;
    border-radius: 5px;
    color: #6e8efb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.file-upload-label:hover {
    background: #edf0ff;
}

.file-name {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-checkbox label {
    margin: 0;
    font-weight: normal;
}

.form-checkbox a {
    color: #6e8efb;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .careers-hero h1 {
        font-size: 2.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .application-form form {
        padding: 25px;
    }
    
    .position-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .careers-hero h1 {
        font-size: 1.8rem;
    }
    
    .careers-hero p {
        font-size: 1rem;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .position-type {
        align-self: flex-start;
    }
    
    .position-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .position-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .apply-btn, .view-details {
        text-align: center;
    }
}
