:root {
    --pinheiro-blue: #073477;
    --pinheiro-blue-dark: #05285c;
    --pinheiro-blue-soft: #edf3fb;
    --pinheiro-red: #e60000;
    --pinheiro-red-dark: #c90000;
    --text: #182230;
    --muted: #667085;
    --page: #f7f8fa;
    --border: #e4e7ec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(16, 24, 40, .04);
}

.public-header .navbar {
    min-height: 84px;
}

.public-brand {
    display: flex;
    align-items: center;
}

.public-logo {
    display: block;
    width: 205px;
    height: 66px;
    object-fit: contain;
}

.public-header .nav-link {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.public-header .nav-link:hover {
    color: var(--pinheiro-blue);
}

.public-header-button {
    padding: 10px 17px;
}

.btn-primary {
    --bs-btn-bg: var(--pinheiro-blue);
    --bs-btn-border-color: var(--pinheiro-blue);
    --bs-btn-hover-bg: var(--pinheiro-blue-dark);
    --bs-btn-hover-border-color: var(--pinheiro-blue-dark);
    --bs-btn-active-bg: var(--pinheiro-blue-dark);
    --bs-btn-active-border-color: var(--pinheiro-blue-dark);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 78px 0 100px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(230, 0, 0, .22), transparent 25%),
        linear-gradient(120deg, #05285c 0%, #073477 58%, #0b448f 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -220px;
    border: 70px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hero-section h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    font-weight: 850;
}

.hero-section p {
    max-width: 670px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-panel {
    position: relative;
    z-index: 1;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(8px);
}

.hero-panel-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: var(--pinheiro-red);
    font-size: 25px;
}

.hero-panel h2 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}

.hero-panel p {
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
}

.search-wrap {
    position: relative;
    z-index: 5;
    margin-top: -42px;
}

.search-card {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 14px 35px rgba(16, 24, 40, .1);
}

.form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.form-control,
.form-select {
    border-color: #d0d5dd;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pinheiro-blue);
    box-shadow: 0 0 0 .2rem rgba(7, 52, 119, .11);
}

.jobs-section {
    padding: 74px 0 78px;
}

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

.section-kicker {
    display: inline-block;
    color: var(--pinheiro-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.section-heading h2 {
    margin: 5px 0 0;
    color: var(--pinheiro-blue);
    font-size: 31px;
    font-weight: 800;
}

.jobs-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.job-card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.job-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 35px rgba(16, 24, 40, .08);
}

.job-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.job-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--pinheiro-blue);
    background: var(--pinheiro-blue-soft);
    font-size: 20px;
}

.job-contract {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--pinheiro-blue);
    background: var(--pinheiro-blue-soft);
    font-size: 11px;
    font-weight: 800;
}

.job-card h3 {
    margin: 19px 0 8px;
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
}

.job-location {
    color: var(--muted);
    font-size: 12px;
}

.job-location i {
    color: var(--pinheiro-red);
}

.job-card p {
    min-height: 50px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.job-card-bottom {
    margin-top: 22px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf0f3;
}

.job-card-bottom strong {
    color: var(--pinheiro-blue);
    font-size: 14px;
}

.empty-public {
    padding: 60px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.empty-public > i {
    color: var(--pinheiro-blue);
    font-size: 35px;
}

.empty-public h3 {
    margin: 15px 0 7px;
    color: var(--text);
    font-size: 20px;
}

.empty-public p {
    color: var(--muted);
}

.curriculum-section {
    padding: 20px 0 70px;
}

.curriculum-card {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(120deg, var(--pinheiro-blue), #0b448f);
}

.curriculum-card > div > span {
    color: #ffb0b0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.curriculum-card h2 {
    margin: 7px 0;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.curriculum-card p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.public-footer {
    background: #0b1629;
    color: #fff;
}

.footer-logo {
    width: 220px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

.footer-description {
    max-width: 520px;
    color: #98a2b3;
    font-size: 13px;
}

.footer-admin-link {
    color: #d0d5dd;
    font-size: 13px;
    font-weight: 700;
}

.footer-admin-link:hover {
    color: #fff;
}

.footer-divider {
    margin: 30px 0 15px;
    border-color: rgba(255, 255, 255, .1);
}

.footer-copy {
    color: #667085;
}


/* Public form */

.public-form-page {
    max-width: 1100px;
    padding-top: 55px;
    padding-bottom: 70px;
}

.form-page-heading {
    margin-bottom: 28px;
}

.form-page-heading h1 {
    margin: 5px 0 8px;
    color: var(--pinheiro-blue);
    font-size: 36px;
    font-weight: 800;
}

.form-page-heading p {
    margin: 0;
    color: var(--muted);
}

.public-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
    overflow: hidden;
}

.form-section {
    padding: 30px;
    border-bottom: 1px solid var(--border);
}

.form-section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.form-section-heading > span {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff;
    background: var(--pinheiro-blue);
    font-size: 11px;
    font-weight: 800;
}

.form-section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
}

.form-section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-help {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.form-consent {
    padding: 22px 30px;
    background: #f8fafc;
}

.form-submit {
    padding: 24px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* Success */

.success-page {
    min-height: 65vh;
    padding-top: 65px;
    padding-bottom: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    width: 100%;
    max-width: 680px;
    padding: 55px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(16, 24, 40, .07);
}

.success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--success);
    background: #ecfdf3;
    font-size: 38px;
}

.success-card h1 {
    margin: 8px 0 12px;
    color: var(--pinheiro-blue);
    font-size: 34px;
    font-weight: 800;
}

.success-card p {
    max-width: 540px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.success-actions {
    margin-top: 27px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* Vacancy */

.vacancy-page {
    padding-top: 40px;
    padding-bottom: 70px;
}

.vacancy-card,
.apply-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(16, 24, 40, .05);
}

.vacancy-card {
    padding: 38px;
}

.vacancy-card h1 {
    margin: 6px 0 12px;
    color: var(--pinheiro-blue);
    font-size: 39px;
    font-weight: 850;
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
}

.vacancy-meta i {
    margin-right: 4px;
    color: var(--pinheiro-red);
}

.vacancy-section {
    margin-top: 30px;
}

.vacancy-section h2 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
}

.vacancy-section > div {
    color: #475467;
    font-size: 14px;
    line-height: 1.8;
}

.apply-card {
    position: sticky;
    top: 105px;
    padding: 27px;
}

.apply-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--pinheiro-red);
}

.apply-card h2 {
    margin: 18px 0 7px;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.apply-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.apply-salary {
    margin: 22px 0;
    padding: 15px;
    border-radius: 10px;
    background: #f8fafc;
}

.apply-salary span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.apply-salary strong {
    display: block;
    margin-top: 4px;
    color: var(--pinheiro-blue);
}


/* Bootstrap pagination */
.public-pagination .pagination {
    justify-content: center;
}

.public-pagination .page-link {
    color: var(--pinheiro-blue);
}

.public-pagination .active .page-link {
    color: #fff;
    background: var(--pinheiro-blue);
    border-color: var(--pinheiro-blue);
}


/* Responsive */
@media (max-width: 991.98px) {
    .public-logo {
        width: 185px;
        height: 58px;
    }

    .hero-section {
        padding: 62px 0 80px;
    }

    .hero-panel {
        max-width: 600px;
    }

    .curriculum-card {
        display: block;
    }

    .curriculum-card .btn {
        margin-top: 22px;
    }

    .apply-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .public-header .navbar {
        min-height: 74px;
    }

    .hero-section h1 {
        font-size: 39px;
    }

    .hero-section p {
        font-size: 15px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-card-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-card-bottom .btn {
        width: 100%;
    }

    .form-section,
    .form-consent,
    .form-submit {
        padding: 22px 18px;
    }

    .form-submit {
        flex-direction: column-reverse;
    }

    .form-submit .btn {
        width: 100%;
    }

    .vacancy-card {
        padding: 25px 20px;
    }

    .vacancy-card h1 {
        font-size: 30px;
    }
}

@media (max-width: 575.98px) {
    .public-logo {
        width: 165px;
        height: 54px;
    }

    .hero-section {
        padding: 50px 0 65px;
    }

    .hero-section h1 {
        font-size: 35px;
    }

    .search-wrap {
        margin-top: -28px;
    }

    .search-card {
        padding: 18px;
    }

    .jobs-section {
        padding-top: 55px;
    }

    .curriculum-card {
        padding: 28px 22px;
    }

    .success-card {
        padding: 45px 20px;
    }

    .success-card h1 {
        font-size: 29px;
    }
}
