/*==========================================================
  UFM CAREERS PAGE
  Visual system aligned with Services / Industries pages
==========================================================*/

/* ==========================================================
   CAREERS HERO — CLEAN WHITE PATTERN
========================================================== */

#career-hero{
    position:relative;
    display:flex;
    align-items:center;
    min-height:0;
    padding:4.25rem 0 4.5rem;
    overflow:hidden;
    background:#fff;
    color:var(--heading-color);
    border-bottom:1px solid rgba(11,31,68,.07);
}

#career-hero::before{
    content:"";
    position:absolute;
    top:-120px;
    left:-90px;
    width:300px;
    height:300px;
    border-radius:50%;
    background:rgba(var(--primary-rgb),.055);
    pointer-events:none;
}

#career-hero::after{
    content:"";
    position:absolute;
    right:-110px;
    bottom:-150px;
    width:360px;
    height:360px;
    border-radius:50%;
    background:rgba(var(--secondary-rgb),.075);
    pointer-events:none;
}

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

#career-hero .breadcrumb{
    margin:0 auto 1.5rem;
    padding:0;
    background:transparent;
}

#career-hero .breadcrumb-item,
#career-hero .breadcrumb-item a{
    color:var(--text-light);
    text-decoration:none;
}

#career-hero .breadcrumb-item a:hover{
    color:var(--primary);
}

#career-hero .breadcrumb-item.active{
    color:var(--heading-color);
}

#career-hero h1{
    max-width:920px;
    margin:0 auto 1.15rem;
    color:var(--heading-color);
    font-size:clamp(2.5rem,4.3vw,4rem);
    font-weight:700;
    line-height:1.12;
    text-wrap:balance;
}

#career-hero .lead{
    max-width:790px;
    margin:0 auto;
    color:var(--text-light);
    font-size:1.05rem;
    line-height:1.75;
}

/* ==========================================================
   COMMON CAREERS SECTIONS
========================================================== */

#why-work,
#employee-benefits,
#apply-job{
    background:#fff;
}

#job-openings,
#recruitment-process,
#career-faq{
    background:#f7f9fc !important;
}

#why-work,
#job-openings,
#employee-benefits,
#recruitment-process,
#apply-job,
#career-faq,
#career-cta{
    position:relative;
    overflow:hidden;
}

#why-work,
#job-openings,
#employee-benefits,
#recruitment-process,
#apply-job,
#career-faq{
    padding-top:5rem !important;
    padding-bottom:5rem !important;
}

#why-work .container,
#job-openings .container,
#employee-benefits .container,
#recruitment-process .container,
#apply-job .container,
#career-faq .container{
    position:relative;
    z-index:2;
}

#why-work h2,
#job-openings h2,
#employee-benefits h2,
#recruitment-process h2,
#apply-job h2,
#career-faq h2{
    color:var(--heading-color);
    font-weight:700;
}

.section-subtitle{
    display:inline-flex;
    align-items:center;
    padding:.5rem .95rem;
    margin-bottom:1rem;
    border:1px solid rgba(var(--secondary-rgb),.22);
    border-radius:50px;
    background:rgba(var(--secondary-rgb),.07);
    color:var(--secondary-color);
    letter-spacing:1.8px;
    font-size:.75rem;
    font-weight:700;
    line-height:1;
}

/* ==========================================================
   WHY WORK
========================================================== */

#why-work .row{
    --bs-gutter-x:3.5rem;
    --bs-gutter-y:2.5rem;
}

#why-work img{
    display:block;
    width:100%;
    max-height:470px;
    object-fit:cover;
    border:1px solid rgba(11,31,68,.08);
    border-radius:1.15rem !important;
    box-shadow:0 18px 45px rgba(11,31,68,.10) !important;
}

#why-work h2{
    margin-bottom:1rem;
    font-size:clamp(2rem,3.5vw,2.85rem);
    line-height:1.15;
}

#why-work p{
    max-width:650px;
    color:var(--text-light);
    line-height:1.8;
}

#why-work ul{
    display:grid;
    gap:.75rem;
    max-width:560px;
}

#why-work li{
    padding:.75rem 1rem;
    border:1px solid rgba(11,31,68,.07);
    border-radius:.7rem;
    background:#fff;
    color:var(--heading-color);
    box-shadow:0 7px 20px rgba(11,31,68,.045);
    font-weight:600;
}

/* ==========================================================
   JOB CARDS
========================================================== */

#job-openings .row{
    --bs-gutter-y:1.5rem;
}

.job-card{
    height:100%;
    padding:2rem;
    border:1px solid rgba(11,31,68,.08);
    border-radius:1rem;
    background:#fff;
    box-shadow:0 12px 32px rgba(11,31,68,.07);
    transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.job-card:hover{
    transform:translateY(-5px);
    border-color:rgba(var(--primary-rgb),.18);
    box-shadow:0 20px 42px rgba(11,31,68,.11);
}

.job-card h4{
    margin-bottom:1rem;
    color:var(--heading-color);
    font-size:1.3rem;
    font-weight:700;
}

.job-card p{
    color:var(--text-light);
    line-height:1.65;
}

.job-card strong{
    color:var(--heading-color);
}

.job-card .btn{
    margin-top:.65rem;
}

/* ==========================================================
   BENEFITS
========================================================== */

#employee-benefits .row{
    --bs-gutter-y:1.5rem;
}

.benefit-card{
    height:100%;
    min-height:170px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:2rem 1.25rem;
    border:1px solid rgba(11,31,68,.08);
    border-radius:1rem;
    background:#fff;
    box-shadow:0 10px 28px rgba(11,31,68,.06);
    transition:transform .3s ease, box-shadow .3s ease;
}

.benefit-card:hover{
    transform:translateY(-4px);
    box-shadow:0 17px 38px rgba(11,31,68,.10);
}

.benefit-card i{
    width:58px;
    height:58px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:1rem;
    border-radius:50%;
    background:rgba(var(--primary-rgb),.08);
    color:var(--primary-color);
    font-size:1.55rem;
}

.benefit-card h5{
    margin:0;
    color:var(--heading-color);
    font-weight:700;
}

/* ==========================================================
   RECRUITMENT PROCESS
========================================================== */

#recruitment-process .section-description{
    max-width:760px;
    margin:0 auto;
    color:var(--text-light);
    line-height:1.75;
}

.process-box{
    height:100%;
    padding:2rem 1.25rem;
    border:1px solid rgba(11,31,68,.07);
    border-radius:1rem;
    background:#fff;
    box-shadow:0 9px 26px rgba(11,31,68,.055);
}

.process-number{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 1rem;
    border-radius:50%;
    background:var(--primary-color);
    color:#fff;
    font-size:1.05rem;
    font-weight:700;
}

.process-box h5{
    color:var(--heading-color);
    font-weight:700;
}

.process-box p{
    margin:0;
    color:var(--text-light);
    line-height:1.65;
}

/* ==========================================================
   APPLICATION FORM
========================================================== */

.contact-form-box{
    padding:3rem;
    border:1px solid rgba(11,31,68,.08);
    border-radius:1.15rem;
    background:#fff;
    box-shadow:0 18px 50px rgba(11,31,68,.08);
}

.contact-form-box h2{
    margin-bottom:1.75rem !important;
}

.contact-form-box .form-control,
.contact-form-box .form-select{
    min-height:52px;
    border:1px solid #dce3ec;
    border-radius:.65rem;
    color:var(--heading-color);
    background:#fff;
    box-shadow:none;
}

.contact-form-box textarea.form-control{
    min-height:130px;
    padding-top:.85rem;
}

.contact-form-box .form-control::placeholder{
    color:#8994a3;
}

.contact-form-box .form-control:focus,
.contact-form-box .form-select:focus{
    border-color:rgba(var(--primary-rgb),.45);
    box-shadow:0 0 0 .2rem rgba(var(--primary-rgb),.08);
}

.contact-form-box .form-label{
    margin-bottom:.45rem;
    color:var(--heading-color);
    font-weight:600;
}

.contact-form-box .btn{
    min-width:210px;
}

/* ==========================================================
   CAREER FAQ
========================================================== */

#career-faq .accordion{
    max-width:900px;
    margin:0 auto;
}

#career-faq .accordion-item{
    margin-bottom:.75rem;
    overflow:hidden;
    border:1px solid rgba(11,31,68,.08);
    border-radius:.8rem !important;
    background:#fff;
    box-shadow:0 7px 22px rgba(11,31,68,.045);
}

#career-faq .accordion-button{
    padding:1.15rem 1.3rem;
    color:var(--heading-color);
    background:#fff;
    font-weight:600;
    box-shadow:none;
}

#career-faq .accordion-button:not(.collapsed){
    color:var(--primary-color);
    background:#fff;
}

#career-faq .accordion-button:focus{
    box-shadow:0 0 0 .2rem rgba(var(--primary-rgb),.08);
}

#career-faq .accordion-body{
    color:var(--text-light);
    line-height:1.75;
}

/* ==========================================================
   CAREER CTA — SAME PATTERN AS SERVICES / INDUSTRIES
========================================================== */

#career-cta{
    padding:5.5rem 0 !important;
    background:#fff;
}

#career-cta::before{
    content:"";
    position:absolute;
    top:-140px;
    left:-100px;
    width:320px;
    height:320px;
    border-radius:50%;
    background:rgba(var(--primary-rgb),.055);
    pointer-events:none;
}

#career-cta::after{
    content:"";
    position:absolute;
    right:-130px;
    bottom:-150px;
    width:360px;
    height:360px;
    border-radius:50%;
    background:rgba(var(--secondary-rgb),.075);
    pointer-events:none;
}

#career-cta .container{
    position:relative;
    z-index:2;
}

#career-cta .cta-box{
    position:relative;
    max-width:1120px;
    margin:0 auto;
    padding:4rem 4.5rem;
    overflow:hidden;
    border:1px solid rgba(11,31,68,.08);
    border-radius:1.25rem;
    background:linear-gradient(100deg,#fff 0%,#fff 68%,#f5f9fd 100%);
    color:var(--heading-color);
    box-shadow:0 20px 55px rgba(11,31,68,.10);
    transition:transform .35s ease, box-shadow .35s ease;
}

#career-cta .cta-box::before{
    content:"";
    position:absolute;
    top:-100px;
    right:-65px;
    width:270px;
    height:270px;
    border-radius:50%;
    border:1px solid rgba(var(--primary-rgb),.12);
    box-shadow:
        0 0 0 24px rgba(var(--primary-rgb),.035),
        0 0 0 52px rgba(var(--secondary-rgb),.025);
    pointer-events:none;
}

#career-cta .cta-box:hover{
    transform:translateY(-4px);
    box-shadow:0 26px 65px rgba(11,31,68,.13);
}

#career-cta .cta-box h2,
#career-cta .cta-box p,
#career-cta .cta-box .btn{
    position:relative;
    z-index:2;
}

#career-cta .cta-box h2{
    max-width:850px;
    margin:0 auto 1rem;
    color:var(--heading-color);
    font-size:clamp(2rem,4vw,3.1rem);
    line-height:1.15;
}

#career-cta .cta-box p{
    max-width:820px;
    margin:0 auto 1.75rem;
    color:var(--text-light);
    line-height:1.8;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:991.98px){
    #career-hero{
        padding:3.75rem 0 4rem;
    }

    #career-hero h1{
        font-size:clamp(2.3rem,5.5vw,3.4rem);
    }

    #why-work,
    #job-openings,
    #employee-benefits,
    #recruitment-process,
    #apply-job,
    #career-faq{
        padding-top:4.25rem !important;
        padding-bottom:4.25rem !important;
    }

    .contact-form-box{
        padding:2.5rem;
    }

    #career-cta{
        padding:4.75rem 0 !important;
    }

    #career-cta .cta-box{
        padding:3.5rem 3rem;
    }
}

@media (max-width:767.98px){
    #career-hero{
        padding:2.75rem 0 3.25rem;
    }

    #career-hero .breadcrumb{
        margin-bottom:1.15rem;
    }

    #career-hero h1{
        font-size:clamp(2rem,8vw,2.65rem);
        line-height:1.15;
    }

    #career-hero .lead{
        font-size:.95rem;
        line-height:1.7;
    }

    #why-work,
    #job-openings,
    #employee-benefits,
    #recruitment-process,
    #apply-job,
    #career-faq{
        padding-top:3.5rem !important;
        padding-bottom:3.5rem !important;
    }

    #why-work img{
        max-height:360px;
    }

    .contact-form-box{
        padding:2rem 1.25rem;
        border-radius:1rem;
    }

    .job-card,
    .benefit-card,
    .process-box{
        padding:1.65rem 1.25rem;
    }

    #career-cta{
        padding:4rem 0 !important;
    }

    #career-cta .cta-box{
        padding:2.75rem 1.5rem;
        border-radius:1rem;
    }

    #career-cta .cta-box h2{
        font-size:clamp(1.85rem,7vw,2.5rem);
    }

    #career-cta .cta-box p{
        font-size:.95rem;
        line-height:1.7;
    }

    #career-cta .cta-box .btn{
        width:100%;
    }
}

@media (max-width:420px){
    #career-hero{
        padding:2.25rem 0 2.75rem;
    }

    #career-hero h1{
        font-size:1.9rem;
    }

    .section-subtitle{
        font-size:.68rem;
        letter-spacing:1.4px;
    }

    .contact-form-box{
        padding:1.5rem 1rem;
    }

    #career-cta .cta-box{
        padding:2.35rem 1.15rem;
    }

    #career-cta .cta-box h2{
        font-size:1.75rem;
    }
}

/* ==========================================================
   UFM IMAGE FIT — CLEAN RESPONSIVE RULES
   Careers image source is 1600x1000 (16:10).
   Remove the old 470px/360px height cap that caused
   oversized unused space around the image.
========================================================== */
@media (min-width: 1200px) {
    #why-work > .container {
        width: min(100% - 2rem, 1400px);
    }

    #why-work > .container > .row > .col-lg-6:first-child {
        flex: 0 0 58%;
        max-width: 58%;
    }

    #why-work > .container > .row > .col-lg-6:last-child {
        flex: 0 0 42%;
        max-width: 42%;
    }
}

#why-work > .container > .row > .col-lg-6:first-child {
    display: flex;
    align-items: stretch;
}

#why-work img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    align-self: stretch;
}

@media (max-width: 991.98px) {
    #why-work > .container > .row > .col-lg-6:first-child {
        display: block;
    }

    #why-work img {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}
