/* Career Page Styles */

/* Hero Section */
.career-hero {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 6rem 2rem;
    text-align: center;
    margin-top: 170px;
}

.career-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.career-hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: #ffffff;
    color: #ff0000;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

/* Main Content */
.career-main {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #cccccc;
    text-align: center;
    margin-bottom: 3rem;
}

/* Why Work With Us Section */
.why-section {
    margin-bottom: 5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid rgba(255, 0, 0, 0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Positions Section */
.positions-section {
    margin-bottom: 5rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.job-card {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    border-color: #ff0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.job-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.job-title {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #999999;
}

.job-location,
.job-type {
    display: flex;
    align-items: center;
}

.job-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.job-requirements {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.job-requirements li {
    color: #cccccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.job-requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff0000;
    font-weight: 700;
}

.apply-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #999999;
    font-size: 1.125rem;
}

/* Process Section */
.process-section {
    margin-bottom: 5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.process-step:hover {
    border-color: #ff0000;
    transform: translateY(-5px);
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: #cccccc;
    line-height: 1.6;
}

/* Application Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 0, 0, 0.3);
    margin: auto;
}

.modal-header {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 2rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* Application Form */
.application-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* File Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.file-info {
    font-size: 0.875rem;
    color: #999999;
    font-weight: 400;
}

.form-group input[type="file"] {
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input[type="file"]:hover {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.05);
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.preview-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-info {
    flex: 1;
}

.preview-filename {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.preview-size {
    color: #999999;
    font-size: 0.875rem;
}

.preview-remove {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.preview-remove:hover {
    background: #ff0000;
    color: #ffffff;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ff0000;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 2px solid #22c55e;
    display: block;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
    display: block;
}

/* Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* Responsive Design */
@media (min-width: 768px) {
    .career-hero-title {
        font-size: 4.5rem;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .career-hero {
        padding: 8rem 2rem;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .career-hero-title {
        font-size: 2.5rem;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}