*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 15px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}


.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: var(--shadow-sm);
}

.header-content {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-group {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 52px;
    max-width: 210px;
    object-fit: contain;
}

@media (max-width: 639px) {
    .brand-logo {
        height: 40px;
        max-width: 150px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}


.hero {
    background-color: #0f172a;
    color: #ffffff;
    min-height: 630px;
    padding: 5rem 1.5rem 7rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.24) 55%, rgba(0, 0, 0, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero>.container {
    position: relative;
    z-index: 2;
}

.hero-content {
    width: min(100%, 680px);
    text-shadow: 0 2px 18px rgba(0, 40, 70, 0.26);
}

.hero-kicker {
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4.3vw, 4.25rem);
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-lead {
    width: min(100%, 620px);
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 400;
}

.hero-lead p+p {
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 0;
        display: block;
        background: #ffffff;
        color: var(--text-main);
    }

    .hero::after {
        display: none;
    }

    .hero-background {
        position: relative;
        inset: auto;
        display: block;
        height: clamp(280px, 72vw, 430px);
        object-position: 58% center;
    }

    .hero>.container {
        padding-top: 2.5rem;
        padding-bottom: 5rem;
    }

    .hero-content {
        text-shadow: none;
    }

    .hero-kicker {
        font-size: 1.25rem;
        color: var(--text-muted);
    }

    .hero-title {
        font-size: 2.35rem;
    }

    .hero-desktop-break {
        display: none;
    }

    .hero-lead {
        font-size: 0.95rem;
        color: var(--text-muted);
    }
}


.filter-section {
    margin-top: -1.5rem;
    position: relative;
    z-index: 20;
}

.filter-box {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .filter-grid {
        grid-template-columns: 2fr 1.2fr 1.2fr auto;
    }
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

select.form-control {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 0.875rem;
    color: var(--text-muted);
    pointer-events: none;
}

.btn-clear {
    background-color: #f1f5f9;
    color: var(--text-muted);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-clear:hover {
    background-color: #e2e8f0;
    color: var(--text-main);
}


.jobs-section {
    width: calc(100% - 3rem);
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

@media (max-width: 639px) {
    .jobs-section {
        width: calc(100% - 1rem);
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.job-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}


.pill-badge {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.6875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.job-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.job-card:hover .job-card-title {
    color: var(--primary);
}

.job-card-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.job-card-info svg {
    color: var(--primary);
    flex-shrink: 0;
}

.job-card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.job-card-footer svg {
    transition: transform 0.2s;
}

.job-card:hover .job-card-footer svg {
    transform: translateX(4px);
}


.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    margin: 1rem 0;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.duplicate-application-card {
    width: min(100%, 470px);
    padding: 2rem;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .duplicate-application-card {
    transform: scale(1);
}

.duplicate-application-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0ff;
    color: #2864e8;
}

.duplicate-application-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-size: 1.35rem;
}

.duplicate-application-card p {
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.duplicate-application-card .btn {
    width: 100%;
    justify-content: center;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 10;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.modal-box {
    background-color: #f8fafc;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}


.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    background-color: #0f172a;
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border: 1px solid #334155;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jobs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.job-card {
    min-height: 268px;
    padding: 1.5rem;
    border: 1px solid #dce4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.job-card:hover {
    border-color: #c7d7ef;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.pill-badge {
    margin-bottom: 1.1rem;
    padding: 0.35rem 0.8rem;
    background: #2864e8;
    font-size: 0.7rem;
}

.job-card-title {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: #172033;
}

.job-card-info {
    margin-bottom: 0.7rem;
    color: #475569;
    font-size: 0.95rem;
}

.job-card-info svg,
.job-card-footer svg {
    color: #2864e8;
}

.job-card-footer {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid #dce4ef;
    color: #2864e8;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.modal-card {
    max-width: 670px;
    border-radius: 18px;
}

.modal-header {
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-box {
    border-radius: 18px;
    background: #f8fafc;
}

@media (max-width: 1023px) {
    .jobs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        min-height: 250px;
    }
}


.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0;
    border-top: 1px solid #1e293b;
    font-size: 0.875rem;
}

.footer-content {
    text-align: center;
}

.hidden {
    display: none !important;
}
