:root {
    --navy: #60252b;
    --ink: #403035;
    --muted: #907981;
    --teal: #cc3333;
    --bg: #fff9f8;
    --line: #f0e1e1
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Cairo, Tahoma, sans-serif;
    color: var(--ink);
    background: var(--bg)
}

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

button {
    cursor: pointer
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    width: min(1180px, calc(100% - 38px));
    margin: auto
}

.topbar {
    background: white;
    border-bottom: 1px solid var(--line)
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy)
}

.logo {
    width: 42px;
    height: 42px;
    background: var(--navy);
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: white;
    font-size: 25px;
    font-weight: 800
}

.brand small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.1
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 31px;
    font-weight: 700;
    font-size: 13px
}

.navlinks a:hover {
    color: var(--teal)
}

.outline {
    border: 1px solid #ead5d6;
    border-radius: 10px;
    padding: 11px 17px;
    background: white;
    font-size: 12px;
    font-weight: 800
}

.hero {
    background: linear-gradient(115deg, #61252d, #982d38 63%, #cc3333);
    color: white;
    position: relative;
    overflow: hidden
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border: 1px solid #ffffff19;
    border-radius: 50%;
    width: 500px;
    height: 500px;
    left: -170px;
    top: -270px
}

.hero:after {
    left: -50px;
    top: -190px;
    width: 350px;
    height: 350px
}

.hero-inner {
    padding: 68px 0 76px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffffff35;
    background: #ffffff12;
    color: #ffe6e4;
    border-radius: 30px;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 700
}

.pulse {
    width: 8px;
    height: 8px;
    background: #ffc5bd;
    border-radius: 100%
}

.hero h1 {
    font-size: clamp(29px, 4vw, 49px);
    line-height: 1.55;
    margin: 16px 0 10px;
    font-weight: 800
}

.hero h1 span {
    color: #ffd8cf
}

.hero p {
    color: #f9e4e2;
    line-height: 2;
    max-width: 575px;
    margin: 0;
    font-size: 14px
}

.hero-stats {
    display: flex;
    gap: 38px;
    margin-top: 28px
}

.stat strong {
    display: block;
    font: 800 27px Cairo
}

.stat small {
    color: #f2d2d0;
    font-size: 11px
}

.hero-art {
    width: 250px;
    height: 240px;
    flex-shrink: 0;
    position: relative
}

.float {
    position: absolute;
    box-shadow: 0 20px 60px #3a101a44;
    background: #ffffff1b;
    border: 1px solid #ffffff29;
    backdrop-filter: blur(10px);
    border-radius: 18px
}

.float.one {
    width: 160px;
    height: 155px;
    right: 20px;
    top: 20px;
    padding: 19px
}

.float.two {
    width: 153px;
    height: 75px;
    left: 8px;
    bottom: 10px;
    padding: 13px
}

.float .circle {
    width: 43px;
    height: 43px;
    background: #e57474;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 15px
}

.float .bar {
    height: 7px;
    border-radius: 8px;
    background: #ffffff5c;
    margin: 8px 0
}

.float .bar:last-child {
    width: 65%;
    background: #ffc1bb
}

.float.two span {
    font-size: 12px;
    font-weight: 700
}

.section {
    padding: 53px 0 70px
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 23px
}

.section-head h2 {
    font-size: 25px;
    margin: 0;
    color: var(--navy)
}

.section-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px
}

.count {
    background: #fce7e6;
    color: #bb3030;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800
}

.filters {
    display: flex;
    gap: 13px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 7px 25px #7030300c;
    margin-bottom: 25px
}

.search {
    position: relative;
    flex: 2
}

.search span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a98e92
}

.filters input,
.filters select {
    outline: 0;
    border: 1px solid var(--line);
    background: #fffdfd;
    color: #65444a;
    border-radius: 9px;
    padding: 14px 16px;
    width: 100%;
    font-size: 12px
}

.filters input {
    padding-right: 44px
}

.filters input:focus,
.filters select:focus,
input:focus,
textarea:focus {
    border-color: var(--teal);
    outline: 2px solid #cc33331c
}

.filter {
    flex: 1
}

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

.job {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 25px #682c3409;
    transition: transform .2s, box-shadow .2s
}

.job:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px #682c3419
}

.job-top {
    display: flex;
    justify-content: space-between;
    align-items: start
}

.job-icon {
    width: 58px;
    height: 58px;
    padding: 10px;
    border: 1px solid #f0e1e1;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fffafa;
    box-shadow: 0 5px 14px #682c3410
}

.job-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.tag {
    color: #b82d2d;
    background: #fbe8e7;
    font-size: 10px;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 40px
}

.job h3 {
    font-size: 17px;
    color: var(--navy);
    margin: 19px 0 3px
}

.dept {
    color: var(--muted);
    font-size: 11px;
    margin: 0
}

.job-description {
    font-size: 12px;
    line-height: 2;
    color: #806b72;
    min-height: 72px;
    margin: 15px 0
}

.meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

.meta span {
    font-size: 10px;
    color: #806a71;
    background: #fbf2f2;
    padding: 7px 10px;
    border-radius: 6px
}

.job-footer {
    border-top: 1px solid var(--line);
    padding-top: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.date {
    font-size: 10px;
    color: #a18a90
}

.apply {
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: white;
    padding: 10px 19px;
    font-size: 11px;
    font-weight: 800
}

.apply:hover,
.primary:hover {
    background: #ac2525
}

.empty {
    display: none;
    text-align: center;
    background: white;
    border: 1px solid var(--line);
    padding: 50px;
    border-radius: 16px;
    color: var(--muted)
}

.footer {
    background: #4d1c24;
    color: #e8cacf;
    padding: 27px 0
}

.footrow {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    font-size: 11px
}

.footrow b {
    color: white
}

.overlay {
    position: fixed;
    inset: 0;
    background: #250d14c7;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
    overflow-y: auto
}

.overlay.show {
    display: flex
}

.modal {
    background: white;
    border-radius: 18px;
    width: min(650px, 100%);
    max-height: min(92vh, 900px);
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 30px 90px #0003
}

.close {
    position: absolute;
    top: 19px;
    left: 19px;
    border: 0;
    background: #faeeee;
    color: var(--ink);
    height: 32px;
    width: 32px;
    border-radius: 9px;
    font-size: 23px
}

.modal h2 {
    color: var(--navy);
    margin: 0;
    font-size: 22px
}

.modal .sub {
    color: var(--muted);
    margin: 2px 0 20px;
    font-size: 12px
}

.success-modal {
    max-width: 460px;
    text-align: center;
    padding: 38px 32px
}

.success-modal-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e6f7ef;
    color: #168150;
    font-size: 30px;
    font-weight: 800
}

.success-modal p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
    margin: 14px 0 24px
}

.success-modal-button {
    min-width: 130px
}

.description {
    background: #fff6f5;
    border-radius: 12px;
    padding: 17px;
    font-size: 12px;
    line-height: 2;
    color: #755960;
    margin-bottom: 20px
}

.description strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 3px
}

.form-heading {
    font-size: 17px;
    color: var(--navy);
    margin: 15px 0
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.field label {
    display: block;
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 5px
}

.field input,
.field select {
    width: 100%;
    border: 1px solid #eddbdd;
    border-radius: 9px;
    padding: 11px 12px;
    font-size: 12px;
    background: white
}

.field.full {
    grid-column: 1/-1
}

.hint {
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px
}

.primary {
    border: 0;
    background: var(--teal);
    color: white;
    padding: 13px 27px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 9px
}

.disclaimer {
    font-size: 10px;
    color: #9a8287;
    max-width: 320px
}

.success {
    text-align: center;
    padding: 30px 8px
}

.success .check {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e3f9ef;
    color: #0a9973;
    font-size: 38px;
    margin: 0 auto 20px
}

.success p {
    color: var(--muted);
    line-height: 2;
    font-size: 13px
}

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

    .hero-art {
        display: none
    }
}

@media(max-width:650px) {
    .nav {
        height: 70px
    }

    .navlinks {
        display: none
    }

    .hero-inner {
        padding: 46px 0
    }

    .hero-stats {
        gap: 20px
    }

    .section {
        padding: 36px 0
    }

    .filters {
        flex-direction: column
    }

    .cards {
        grid-template-columns: 1fr
    }

    .section-head h2 {
        font-size: 21px
    }

    .modal {
        padding: 23px 18px
    }

    .grid-form {
        grid-template-columns: 1fr
    }

    .actions {
        align-items: stretch;
        flex-direction: column
    }

    .footrow {
        flex-direction: column;
        text-align: center
    }
}


.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color .2s, box-shadow .2s
}

.topbar.is-scrolled {
    background: rgb(204, 51, 51);
    border-bottom-color: transparent;
    box-shadow: 0 4px 16px #60252b2b
}

.brand-logo {
    display: block;
    width: auto;
    height: 50px;
    max-width: 100%
}

.brand-logo-sticky {
    display: none
}

.topbar.is-scrolled .brand-logo-default {
    display: none
}

.topbar.is-scrolled .brand-logo-sticky {
    display: block
}

@media(max-width:650px) {
    .brand-logo {
        height: 44px
    }
}

/* Laravel live states */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 0 0 22px;
    background: #fff0f0;
    color: #922626;
    border: 1px solid #f2c9c9
}

.alert.success-alert {
    color: #1b684a;
    background: #eefaf3;
    border-color: #bfe7d0
}

.job-link {
    display: inline-block;
    text-align: center
}

.job-link:hover {
    color: #fff
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 7px 28px #60252b0b;
    max-width: 850px;
    margin: 0 auto
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px
}

.breadcrumb a {
    color: var(--teal)
}

.details-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px
}

.details-top h2 {
    margin: 0;
    color: var(--navy)
}

.details-top p {
    color: var(--muted);
    font-size: 13px
}

.details-description {
    white-space: pre-line
}

.requirements-rich {
    white-space: normal
}

.requirements-rich > strong {
    display: block;
    margin-bottom: 12px
}

.requirements-rich :is(ul, ol) {
    padding-inline-start: 24px;
    margin: 10px 0
}

.requirements-rich li {
    margin: 6px 0
}

.field textarea {
    width: 100%;
    border: 1px solid #dfe8ed;
    border-radius: 9px;
    padding: 11px 12px;
    font-size: 12px;
    min-height: 100px
}

.field-error {
    display: block;
    color: #b42335;
    font-size: 11px;
    margin-top: 5px
}

.button-disabled {
    opacity: .65;
    cursor: wait
}

@media(max-width:650px) {
    .form-card {
        padding: 20px 16px
    }

    .details-top {
        display: block
    }
}

/* Error pages */
.error-page {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
    padding: 64px 0;
    background:
        radial-gradient(circle at 15% 20%, #cc33330c 0, transparent 28%),
        radial-gradient(circle at 85% 75%, #60252b0d 0, transparent 26%),
        var(--bg)
}

.error-card {
    max-width: 920px;
    margin: auto;
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(300px, 1.15fr);
    align-items: center;
    gap: 58px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 20px 60px #60252b12
}

.error-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    inset: -100px auto auto -80px;
    border-radius: 50%;
    background: #cc33330b
}

.error-visual {
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    justify-items: center;
    position: relative;
    border-radius: 50%;
    color: white;
    background: linear-gradient(145deg, var(--navy), #982d38 62%, var(--teal));
    box-shadow: 0 24px 45px #60252b2e
}

.error-visual::before,
.error-visual::after {
    content: "";
    position: absolute;
    border: 1px solid #ffffff24;
    border-radius: 50%
}

.error-visual::before {
    width: 72%;
    height: 72%;
    inset: 14%
}

.error-visual::after {
    width: 42%;
    height: 42%;
    inset: 29%
}

.error-code {
    position: relative;
    z-index: 1;
    direction: ltr;
    font-size: clamp(60px, 8vw, 90px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -5px
}

.error-badge {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 7px 14px;
    border: 1px solid #ffffff38;
    border-radius: 30px;
    background: #ffffff17;
    color: #ffe9e7;
    font-size: 11px;
    font-weight: 700
}

.service-pulse {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-inline-end: 5px;
    border-radius: 50%;
    background: #ffd0c9;
    box-shadow: 0 0 0 5px #ffd0c919
}

.error-copy {
    position: relative;
    z-index: 1
}

.error-eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800
}

.error-copy h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.5
}

.error-copy > p:not(.error-eyebrow) {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 2
}

.error-reason {
    margin-top: 20px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
    border-inline-start: 3px solid var(--teal);
    border-radius: 8px;
    background: #fff7f6;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8
}

.error-reason strong {
    color: var(--navy);
    font-size: 13px
}

.error-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px
}

.error-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.error-secondary {
    padding: 12px 18px;
    border: 1px solid #ead5d6;
    border-radius: 10px;
    color: var(--navy);
    background: white;
    font-size: 12px;
    font-weight: 800
}

.error-secondary:hover {
    color: var(--teal);
    border-color: #dfbfc1
}

.error-primary:focus-visible,
.error-secondary:focus-visible {
    outline: 3px solid #cc333336;
    outline-offset: 3px
}

@media(max-width:760px) {
    .error-page {
        min-height: calc(100vh - 145px);
        padding: 36px 0
    }

    .error-card {
        padding: 30px 22px;
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center
    }

    .error-visual {
        width: min(230px, 78%);
        margin: auto
    }

    .error-actions {
        justify-content: center
    }
}

@media(max-width:420px) {
    .error-actions > * {
        width: 100%
    }
}
