/* =========================================
   Careers Hero Section
   ========================================= */
.careers-hero {
    background-color: #0A2543; /* Deep Blue */
    padding: 80px 0;
    color: #ffffff;
}

.careers-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.careers-hero-content h1 {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.careers-hero-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #E0E7FF;
    margin-bottom: 30px;
    max-width: 500px;
}

.industries-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #A7E8FF;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.industries-list {
    font-size: 14px;
    color: #CBD5E1;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-careers-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #013760;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-careers-hero:hover {
    /* background-color: #0369A1; */
    color: #ffffff;
}

.careers-hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    width: 100%;
    height: auto;
}

/* =========================================
   Where Careers Take Shape (Split Card)
   ========================================= */
.careers-intro {
    padding: 100px 0;
    background-color: #ffffff;
}

.careers-intro-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.careers-intro-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 15px;
}

.careers-intro-header p {
    font-size: 18px;
    color: #64748B;
}

.careers-split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.careers-card-content {
    background-color: #0A2543;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.careers-card-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #ffffff;
}

.text-highlight {
    color: #38BDF8;
    display: block;
    margin-bottom: 5px;
}

.careers-card-content p {
    color: #E0E7FF;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-careers-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 2px solid #38BDF8;
    padding-bottom: 2px;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-careers-card:hover {
    color: #38BDF8;
}

.careers-card-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.careers-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* =========================================
   How We Work Section
   ========================================= */
.how-we-work-section {
    padding: 100px 0;
    background-color: #F8FAFC;
}

.how-we-work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.work-content-col h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 30px;
}

.lead-text {
    font-size: 18px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.sub-text {
    font-size: 16px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
}

.desc-text {
    font-size: 16px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-work-cta {
    display: inline-block;
    background-color: #013760;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-work-cta:hover {
    background-color: #0369A1;
    color: #ffffff;
}

.work-cards-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
}

.card-icon-wrapper {
    flex-shrink: 0;
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: #F0F9FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #013760;
    font-size: 20px;
}

.card-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.card-text p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   All Open Positions Section
   ========================================= */
.open-positions-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.open-positions-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 40px;
}

/* Filters */
.careers-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.filter-group {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.3s ease;
}

.filter-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.filter-group label i {
    color: #013760;
}

.filter-group input,
.filter-group select {
    border: none;
    background: transparent;
    font-size: 15px;
    color: #64748B;
    width: 100%;
    outline: none;
    padding: 4px 0;
    cursor: pointer;
}

.filter-group input::placeholder {
    color: #94A3B8;
}

/* Jobs Table */
.jobs-table-wrapper {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    background-color: #ffffff;
}

.jobs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    min-width: 800px; /* Ensure table doesn't squash too much */
}

.jobs-table thead {
    background-color: #ffffff;
}

.jobs-table th {
    text-align: left;
    padding: 24px;
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
    border-bottom: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0; /* Vertical separator */
    white-space: nowrap;
}

.jobs-table th:last-child {
    border-right: none;
}

.jobs-table td {
    padding: 24px;
    font-size: 15px;
    color: #334155;
    border-bottom: 1px solid #E2E8F0; /* Match header border color */
    border-right: 1px solid #E2E8F0; /* Match header border color for continuous line */
    vertical-align: middle;
}

.jobs-table td:last-child {
    text-align: right;
    width: 1%;
    white-space: nowrap;
    border-right: none;
}

.jobs-table tr:last-child td {
    border-bottom: none;
}

.job-title {
    font-weight: 600;
    color: #334155;
    font-size: 16px;
}

.btn-apply-now {
    background-color: #0A2543;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(10, 37, 67, 0.1);
}

.btn-apply-now:hover {
    background-color: #0F3860;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(10, 37, 67, 0.2);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 15px;
    color: #0F172A;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #38BDF8;
    outline: none;
}

.btn-submit-application {
    width: 100%;
    background-color: #013760;
    color: #ffffff;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit-application:hover {
    background-color: #0369A1;
}

.btn-submit-application:disabled {
    background-color: #94A3B8;
    cursor: not-allowed;
}

#form-message {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.success-message {
    color: #10B981;
    font-weight: 600;
}

.error-message {
    color: #EF4444;
    font-weight: 600;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .careers-hero-grid,
    .careers-split-card,
    .how-we-work-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .careers-hero-content {
        order: 1;
    }

    .careers-hero-image {
        order: 2;
    }

    .careers-card-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .careers-hero-content h1 {
        font-size: 32px;
    }

    .careers-card-content {
        padding: 40px;
    }

    .careers-card-content h3 {
        font-size: 26px;
    }

    .careers-filters {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .jobs-table th, 
    .jobs-table td {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .btn-apply-now {
        padding: 6px 12px;
        font-size: 12px;
    }
}
