/* Careers Page Styles */
.careers-hero {
    background: #082f49;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.careers-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.careers-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.careers-content {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.job-positions {
    margin-bottom: 60px;
}

/* Accordion Styles */
.careers-content .accordion {
    margin-bottom: 60px;
}

.careers-content .accordion-item {
    background: white;
    border: none;
    border-radius: 12px !important;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.careers-content .accordion-button {
    background: white;
    border: none;
    padding: 25px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    box-shadow: none;
    border-radius: 12px !important;
}

    .careers-content .accordion-button:not(.collapsed) {
        background: linear-gradient(135deg, #1e3a5f 0%, #2c5f7f 100%);
        color: white;
        box-shadow: none;
    }

    .careers-content .accordion-button:focus {
        box-shadow: none;
        border: none;
    }

    .careers-content .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' stroke='%23ffffff' stroke-width='1' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        width: 1.5rem;
        height: 1.5rem;
        background-size: 1.2rem;
    }

    .careers-content .accordion-button.collapsed::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e3a5f'%3e%3cpath fill-rule='evenodd' stroke='%231e3a5f' stroke-width='1' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        width: 1.5rem;
        height: 1.5rem;
        background-size: 1.2rem;
    }

.careers-content .position-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-right: 20px;
}

.careers-content .position-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.careers-content .accordion-body {
    padding: 30px;
    background: white;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.job-card h3 {
    color: #1e3a5f;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.job-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.job-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.job-details h4 {
    color: #1e3a5f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.job-details ul {
    color: #666;
    padding-left: 20px;
}

.job-details li {
    margin-bottom: 5px;
}

.benefits-list {
    background: #f0f8ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.benefits-list h5 {
    color: #1e3a5f;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Application Form Styles */
.application-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f7f 100%);
    padding: 80px 0;
    color: white;
}

.application-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.application-form h2 {
    color: #1e3a5f;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #1e3a5f;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.form-group label.required::after {
    content: " *";
    color: #dc3545;
}

.form-control {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-control:focus {
    border-color: #2c5f7f;
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 127, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-check {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin: 0;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-check-label {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

/* Submit button styling - ensure main-btn is visible */
.application-form .main-btn {
    background: linear-gradient(45deg, #1e3a5f, #2c5f7f) !important;
    color: white !important;
    border: none !important;
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 16px 32px;
}

.application-form .main-btn:hover {
    background: linear-gradient(45deg, #2c5f7f, #1e3a5f) !important;
    color: white !important;
    transform: translateY(-2px);
}

.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 991px) {
    .careers-hero {
        padding: 160px 0 60px;
    }
    
    .careers-hero h1 {
        font-size: 2.2rem;
    }
    
    .careers-hero p {
        font-size: 1rem;
    }
    
    .application-form {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .name-row,
    .address-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .careers-hero {
        padding: 140px 0 60px;
    }
    
    .careers-content {
        padding: 60px 0;
    }
    
    .application-section {
        padding: 60px 0;
    }
}