/* Careers Hero Section */
.careers-hero {
    position: relative;
    margin-top: -100px;
    background-image: url("../images/hdf4.1a38b451df02.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    margin-bottom: 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.92), rgba(255, 107, 53, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.badge-item i {
    font-size: 2.5rem;
    color: var(--accent-orange);
}

.badge-item span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Why Work Section */
.why-work-section {
    padding: 5rem 0;
    background: white;
}

.section-title-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-center h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.section-title-center h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-red));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-title-center p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--accent-orange);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.benefit-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* Openings Section */
.openings-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

/* Job Filters */
.job-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.875rem 2rem;
    background: white;
    border: 2px solid #e8f4f8;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-orange);
    background: #fff5f0;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-red));
    color: white;
    border-color: var(--accent-orange);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.job-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-top-color: var(--accent-orange);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.job-type {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-type.full-time {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.job-type.part-time {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.job-type.contract {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.job-type.internship {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.job-posted {
    font-size: 0.85rem;
    color: var(--text-light);
}

.job-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.job-meta i {
    color: var(--accent-orange);
    width: 20px;
}

.job-excerpt {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.job-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: #e8f4f8;
    color: var(--primary-blue);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-view-job {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-job:hover {
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* No Jobs Message */
.no-jobs {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    margin-top: 2rem;
}

.no-jobs i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.no-jobs h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.no-jobs p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Job Modal */
.job-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.job-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 25px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-orange);
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 3rem;
}

.job-detail-header {
    margin-bottom: 2.5rem;
}

.job-detail-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.job-detail-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.job-section {
    margin-bottom: 2.5rem;
}

.job-section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

.job-section ul {
    list-style: none;
    padding: 0;
}

.job-section ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
}

.job-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Application Form */
.application-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2rem;
}

.application-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e8f4f8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px dashed #e8f4f8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--accent-orange);
    background: #fff5f0;
}

.file-upload-label i {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.btn-submit-application {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-red));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit-application:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.email-apply-option {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e8f4f8;
}

.email-apply-option p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.btn-email-apply {
    padding: 0.875rem 2rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-email-apply:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    color: white;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.success-modal.active {
    display: block;
}

.success-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-close-success {
    padding: 0.875rem 2.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-success:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

/* Speculative Applications */
.speculative-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    color: white;
}

.speculative-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.speculative-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.speculative-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.btn-speculative {
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-speculative:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .jobs-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .careers-hero {
        padding: 6rem 0 4rem;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .job-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title-center h2 {
        font-size: 2.2rem;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .application-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .speculative-content {
        padding: 2rem;
        text-align: center;
    }
    
    .btn-speculative {
        margin-top: 1.5rem;
    }
}