:root {
    --navy: #0a1f54;
    --green: #3f9b46;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #dbe3ee;
    --soft: #f5f7fa;
    --white: #ffffff;
    --amber: #b7791f;
    --red: #b42318;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--green);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--ink);
    font-weight: 800;
}

.brand-logo {
    width: auto;
    height: 52px;
    max-width: min(340px, 58vw);
    object-fit: contain;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: var(--white);
    background: var(--navy);
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
}

.site-nav a,
.admin-nav a {
    color: var(--muted);
}

.site-nav a:hover,
.admin-nav a:hover {
    color: var(--navy);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    display: grid;
    min-height: min(760px, calc(100vh - 150px));
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
    padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px);
    background: linear-gradient(110deg, #ffffff 0%, #eef4f7 58%, #f7fbf8 100%);
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: 0;
}

h3 {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.2;
}

.hero p,
.form-hero p,
.thank-you p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions,
.job-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.share-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.share-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 0;
    color: var(--ink);
    background: var(--white);
    appearance: none;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.share-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.share-button:hover {
    transform: translateY(-1px);
}

.share-button:hover {
    color: var(--navy);
    border-color: var(--green);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.share-facebook {
    color: #1877f2;
}

.share-linkedin {
    color: #0a66c2;
}

.share-instagram {
    color: #c13584;
}

.share-whatsapp {
    color: #128c7e;
}

.share-button.is-copied {
    color: var(--white);
    border-color: var(--green);
    background: var(--green);
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 18px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.btn-primary {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.btn-primary:hover {
    color: var(--white);
    background: #2f7c36;
}

.btn-secondary {
    color: var(--navy);
    background: var(--white);
    border-color: var(--line);
}

.btn-secondary:hover {
    color: var(--navy);
    border-color: var(--green);
}

.hero-image {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.section {
    padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-muted {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.benefit-card,
.job-card,
.stat-card,
.admin-panel,
.empty-state,
.notice,
.error-box,
.thank-you {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.benefit-card {
    display: grid;
    overflow: hidden;
}

.benefit-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.benefit-content {
    padding: 20px 24px 24px;
}

.benefit-content h3 {
    margin-bottom: 8px;
}

.benefit-content p,
.job-card p,
.empty-state p {
    color: var(--muted);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

label span,
label small {
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--ink);
    background: var(--white);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(63, 155, 70, 0.14);
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.job-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-card {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.tag,
.status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--navy);
    background: #e8eef8;
    font-size: 12px;
    font-weight: 800;
}

.job-meta,
.job-summary dl,
.detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.job-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-meta div,
.job-summary dl div,
.detail-list div {
    display: grid;
    gap: 2px;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin: 0;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    min-height: 180px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.process-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    color: var(--navy);
    background: #e8f4ea;
}

.process-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-list p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.resume-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: clamp(28px, 5vw, 60px) clamp(20px, 5vw, 72px);
    padding: clamp(28px, 5vw, 44px);
    border-radius: 8px;
    color: var(--white);
    background: var(--navy);
}

.resume-cta h2,
.resume-cta p {
    color: var(--white);
}

.resume-cta .eyebrow {
    color: #a6e0ac;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.faq-item summary {
    padding: 18px 20px;
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
}

.faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--muted);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr) minmax(160px, 0.5fr);
    gap: 24px;
    padding: 42px clamp(20px, 5vw, 72px);
    color: #dbeafe;
    background: #07173e;
}

.site-footer a,
.site-footer strong {
    color: var(--white);
}

.site-footer p {
    margin: 6px 0;
    color: #dbeafe;
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.footer-social-icons a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-social-icons a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.footer-social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #dbeafe;
    font-size: 14px;
}

.footer-bottom a {
    font-weight: 800;
}

.flash,
.notice,
.error-box {
    margin: 20px clamp(20px, 5vw, 72px);
    padding: 16px 18px;
}

.flash-success,
.notice {
    border-color: #bbd7be;
    background: #f0fbf2;
}

.flash-error,
.error-box {
    border-color: #f0b4ad;
    background: #fff5f4;
}

.error-box ul {
    margin: 8px 0 0;
}

.job-detail-hero,
.form-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 72px);
    background: var(--soft);
}

.job-detail-actions {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.share-buttons-detail {
    justify-content: flex-end;
}

.job-detail-hero h1,
.form-hero h1 {
    max-width: 850px;
    font-size: clamp(36px, 5vw, 62px);
}

.job-detail-layout {
    display: grid;
    grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
    gap: 28px;
    padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 72px);
}

.job-summary,
.job-content section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.job-summary {
    position: sticky;
    top: 96px;
    height: fit-content;
    padding: 24px;
}

.job-content {
    display: grid;
    gap: 18px;
}

.job-content section {
    padding: 28px;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

.form-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(34px, 6vw, 70px) 20px;
}

.application-form,
.admin-form {
    display: grid;
    gap: 22px;
}

fieldset {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

legend {
    padding: 0 8px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.form-grid,
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.span-2 {
    grid-column: span 2;
}

.upload-grid label {
    padding: 16px;
    border: 1px dashed #bdc8d8;
    border-radius: 8px;
    background: #fbfcfe;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.consent input {
    width: 20px;
    margin-top: 4px;
}

.thank-you {
    max-width: 820px;
    margin: clamp(60px, 10vw, 120px) auto;
    padding: clamp(36px, 6vw, 64px);
}

.admin-body {
    min-height: 100vh;
    background: var(--soft);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    width: 270px;
    flex-direction: column;
    gap: 26px;
    padding: 24px;
    color: var(--white);
    background: var(--navy);
}

.admin-brand,
.admin-nav a,
.admin-user a {
    color: var(--white);
}

.admin-brand {
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

.admin-logo {
    width: min(190px, 100%);
    height: auto;
    max-height: 116px;
    object-fit: contain;
    object-position: left center;
}

.admin-brand .brand-mark {
    color: var(--navy);
    background: var(--white);
}

.admin-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

.admin-nav a {
    padding: 10px 12px;
    border-radius: 8px;
}

.admin-nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.admin-user {
    display: grid;
    gap: 6px;
    margin-top: auto;
    color: #dbeafe;
    font-size: 14px;
}

.admin-main {
    margin-left: 270px;
    padding: 32px;
}

.admin-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-page-title h1 {
    margin: 0;
    font-size: 34px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    color: var(--navy);
    font-size: 34px;
    line-height: 1;
}

.admin-panel {
    margin-bottom: 22px;
    padding: 22px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 22px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-form,
.actions-cell form {
    display: inline;
}

.link-button {
    border: 0;
    padding: 0;
    color: var(--navy);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.danger {
    color: var(--red);
}

.status-new {
    background: #e8eef8;
}

.status-under_review,
.status-for_interview,
.status-interviewed {
    color: #674500;
    background: #fff3cd;
}

.status-shortlisted,
.status-passed,
.status-hired {
    color: #166534;
    background: #dcfce7;
}

.status-rejected {
    color: #991b1b;
    background: #fee2e2;
}

.admin-filters {
    grid-template-columns: repeat(6, minmax(150px, 1fr)) auto;
    margin-bottom: 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 22px;
}

.compact-form {
    gap: 16px;
}

.upload-links {
    display: grid;
    gap: 12px;
}

.upload-links div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
    background: var(--soft);
}

.login-card {
    width: min(100%, 440px);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-logo {
    width: min(300px, 100%);
    height: auto;
    object-fit: contain;
}

.login-card h1 {
    margin: 50px 0 8px;
    font-size: 34px;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.hint {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .hero,
    .job-detail-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .job-summary {
        position: static;
    }

    .benefit-grid,
    .job-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar,
    .admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .job-detail-hero,
    .form-hero,
    .resume-cta,
    .admin-page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        align-items: center;
        padding: 14px 20px;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        height: 42px;
        max-width: 245px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
        border-bottom: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(14px);
        overflow: visible;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .hero {
        gap: 24px;
        padding-top: 34px;
        padding-bottom: 40px;
    }

    .hero-copy,
    .job-detail-hero > *,
    .form-hero > *,
    .resume-cta > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero p,
    .form-hero p,
    .job-detail-hero p {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .job-detail-actions,
    .share-buttons-detail {
        justify-items: start;
        justify-content: flex-start;
    }

    .hero-image img {
        aspect-ratio: 16 / 9;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

    .benefit-grid,
    .job-grid,
    .job-grid.compact,
    .filter-bar,
    .process-list,
    .site-footer,
    .form-grid,
    .upload-grid,
    .stats-grid,
    .admin-filters {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .job-meta {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        width: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}
