:root{
    --career-primary:#0a3d62;
    --career-primary-2:#1e5fa3;
    --career-accent:#f50b0b;
    --career-text:#1f2937;
    --career-muted:#6b7280;
    --career-bg:#f5f8fc;
    --career-white:#ffffff;
    --career-border:#e5e7eb;
    --career-shadow:0 12px 30px rgba(10,61,98,0.10);
    --career-shadow-soft:0 8px 18px rgba(15,23,42,0.05);
    --career-radius:18px;
}

/* =========================
   PAGE-SCOPED RESET
========================= */
.careers-page,
.careers-page *{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    padding:0;
}

.careers-page{
    background:var(--career-bg);
    padding-bottom:30px;
}

.careers-page img{
    max-width:100%;
    display:block;
}

.careers-container{
    width:min(1180px, calc(100% - 28px));
    margin:0 auto;
}

/* =========================
   HERO BANNER
========================= */
.careers-hero{
    width:100%;
    height:420px;
    position:relative;
    overflow:hidden;
    background:#0a3d62;
    margin:0 0 0 0 !important;
    padding:1 !important;
    z-index:1;
    isolation:isolate;
}

.careers-hero-slides{
    position:relative;
    width:100%;
    height:100%;
    background:#0a3d62;
}

.hero-slide{
    position:absolute;
    inset:0;
    opacity:0;
    z-index:1;
    pointer-events:none;
    transition:opacity .8s ease-in-out;
    background:#0a3d62;
    overflow:hidden;
}

.hero-slide.active{
    opacity:1;
    z-index:2;
    pointer-events:auto;
}

.hero-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
    display:block;
    background:#0a3d62;
    transform:scale(1);
    transition:transform 5s linear;
}

.hero-slide.active img{
    transform:scale(1.02);
}

/* top blend under sticky header */
.careers-hero::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:50px;
    background:linear-gradient(
        to bottom,
        rgba(10,61,98,.18) 0%,
        rgba(10,61,98,.08) 50%,
        rgba(10,61,98,0) 100%
    );
    z-index:4;
    pointer-events:none;
}

.careers-hero-overlay{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:3;
    background:linear-gradient(
        90deg,
        rgba(10,61,98,.12) 0%,
        rgba(10,61,98,.05) 45%,
        rgba(10,61,98,.02) 100%
    );
    pointer-events:none;
}

.careers-hero-content{
    position:relative;
    z-index:4;
    width:100%;
    height:100%;
    padding:22px 24px;
    display:flex;
    align-items:flex-start;
    justify-content:flex-start;
}

.careers-hero-top{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.careers-hero-logo-box{
    background:transparent;
    border-radius:0;
    padding:0;
    box-shadow:none;
    animation:heroLogoFloat 4s ease-in-out infinite;
}

.careers-hero-logo{
    width:150px;
    height:auto;
    display:block;
}

.careers-hiring-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    letter-spacing:.2px;
    color:#fff;
    background:linear-gradient(135deg,#f50b0b,#ff7a18);
    box-shadow:0 10px 22px rgba(245,11,11,.28);
    animation:hiringBadgePulse 2.5s ease-in-out infinite;
    white-space:nowrap;
}

.careers-hiring-badge::before{
    content:"✨";
    margin-right:8px;
    font-size:14px;
}

@keyframes fadeSlide{
    from{ opacity:0; }
    to{ opacity:1; }
}

@keyframes heroLogoFloat{
    0%{ transform:translateY(0); }
    50%{ transform:translateY(-4px); }
    100%{ transform:translateY(0); }
}

@keyframes hiringBadgePulse{
    0%{
        transform:scale(1);
        box-shadow:0 10px 22px rgba(245,11,11,.28);
    }
    50%{
        transform:scale(1.04);
        box-shadow:0 14px 28px rgba(245,11,11,.36);
    }
    100%{
        transform:scale(1);
        box-shadow:0 10px 22px rgba(245,11,11,.28);
    }
}

/* HERO DOTS */
.hero-dots{
    position:absolute;
    left:50%;
    bottom:16px;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:8px;
    z-index:6;
}

.hero-dot{
    width:10px;
    height:10px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.52);
    cursor:pointer;
    padding:0;
    transition:all .25s ease;
    box-shadow:0 2px 8px rgba(0,0,0,0.14);
}

.hero-dot:hover,
.hero-dot:focus-visible{
    background:rgba(255,255,255,.8);
    outline:none;
}

.hero-dot.active{
    width:26px;
    border-radius:999px;
    background:#fff;
}

/* HERO ARROWS */
.hero-arrows{
    position:absolute;
    top:50%;
    left:0;
    right:0;
    transform:translateY(-50%);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 15px;
    z-index:7;
    pointer-events:none;
}

.hero-arrow{
    width:44px;
    height:44px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.88);
    color:#0a3d62;
    font-size:22px;
    font-weight:700;
    cursor:pointer;
    pointer-events:auto;
    transition:transform .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1;
    padding:0;
}

.hero-arrow:hover{
    background:#fff;
    transform:scale(1.05);
}

.hero-arrow:focus-visible{
    outline:none;
    box-shadow:0 0 0 3px rgba(30,95,163,.20), 0 4px 10px rgba(0,0,0,.15);
}

/* =========================
   BUTTONS
========================= */
.careers-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:none;
    cursor:pointer;
    text-decoration:none;
    padding:11px 17px;
    border-radius:12px;
    font-weight:700;
    font-size:13px;
    transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.careers-btn:hover{
    transform:translateY(-1px);
}

.apply-outline{
    background:#fff;
    border:1px solid #d6e3f2;
    color:var(--career-primary);
}

.apply-outline:hover{
    background:#f8fbff;
    border-color:#bfd6ec;
}

.apply-solid{
    background:linear-gradient(135deg,#0a3d62,#1e5fa3);
    color:#fff;
    box-shadow:0 8px 18px rgba(10,61,98,.18);
}

.apply-solid:hover{
    box-shadow:0 12px 22px rgba(10,61,98,.22);
}

.hero-outline-btn{
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.35);
    color:#fff;
}

.hero-outline-btn:hover{
    background:rgba(255,255,255,.18);
}

/* =========================
   SECTION HEADINGS
========================= */
.careers-section{
    margin-top:18px;
}

.careers-section-header{
    text-align:center;
    margin-bottom:16px;
}

.careers-section-header h2{
    margin:0 0 6px;
    font-size:31px;
    line-height:1.2;
    color:var(--career-text);
    font-weight:800;
    letter-spacing:-.2px;
}

.careers-section-header p{
    margin:0 auto;
    max-width:760px;
    color:var(--career-muted);
    font-size:14px;
    line-height:1.65;
}

/* =========================
   CULTURE
========================= */
.culture-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:14px;
}

.culture-card{
    background:var(--career-white);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 18px rgba(15,23,42,0.06);
    border:1px solid #eef2f7;
    transition:transform .2s ease, box-shadow .2s ease;
}

.culture-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 24px rgba(15,23,42,0.09);
}

.culture-image{
    height:190px;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.culture-image img{
    width:100%;
    height:190px;
    object-fit:cover;
}

.culture-body{
    padding:15px 15px 16px;
}

.culture-body h3{
    margin:0 0 6px;
    font-size:17px;
    color:#101828;
    line-height:1.35;
}

.culture-body p{
    margin:0;
    font-size:13px;
    line-height:1.65;
    color:#4b5563;
}

/* =========================
   BENEFITS
========================= */
.benefits-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:14px;
}

.benefit-card{
    background:#fff;
    border-radius:16px;
    padding:18px;
    box-shadow:var(--career-shadow-soft);
    border:1px solid #edf1f5;
    transition:transform .18s ease, box-shadow .18s ease;
}

.benefit-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 24px rgba(15,23,42,0.08);
}

.benefit-icon{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:linear-gradient(135deg, rgba(10,61,98,.12), rgba(30,95,163,.12));
    font-size:22px;
    margin-bottom:10px;
}

.benefit-card h3{
    margin:0 0 6px;
    font-size:16px;
    color:#101828;
    line-height:1.35;
}

.benefit-card p{
    margin:0;
    font-size:13px;
    line-height:1.65;
    color:#4b5563;
}

/* =========================
   JOBS ACCORDION
========================= */
.jobs-accordion{
    display:grid;
    gap:14px;
}

.job-accordion-item{
    background:#fff;
    border:1px solid #e7edf5;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(10,61,98,.05);
    overflow:hidden;
    transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.job-accordion-item:hover{
    box-shadow:0 14px 28px rgba(10,61,98,.08);
    border-color:#d8e4f0;
    transform:translateY(-1px);
}

.job-accordion-item.active{
    border-color:#cfe0f0;
    box-shadow:0 14px 30px rgba(10,61,98,.09);
}

.job-accordion-header{
    width:100%;
    border:none;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:20px 22px;
    cursor:pointer;
    text-align:left;
}

.job-accordion-left{
    display:flex;
    flex-direction:column;
    gap:10px;
    min-width:0;
    flex:1;
}

.job-accordion-title-row{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.job-accordion-title{
    margin:0;
    font-size:22px;
    color:#0a2f4d;
    line-height:1.25;
    font-weight:800;
}

.job-accordion-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.role-pill{
    display:inline-flex;
    align-items:center;
    padding:7px 12px;
    border-radius:999px;
    background:#eef5ff;
    color:#0a3d62;
    font-size:12px;
    font-weight:700;
    border:1px solid #d8e7fb;
    white-space:nowrap;
}

.role-detail{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:10px 12px;
    background:#f7faff;
    border:1px solid #e3edf8;
    border-radius:12px;
    font-size:13px;
    font-weight:600;
    color:#29475f;
}

.job-accordion-arrow{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:50%;
    background:#eef5ff;
    color:#0a3d62;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:700;
    flex-shrink:0;
    transition:transform .22s ease, background .22s ease, color .22s ease;
}

.job-accordion-item.active .job-accordion-arrow{
    transform:rotate(180deg);
    background:#dfeeff;
    color:#08314f;
}

.job-accordion-content{
    display:none;
    padding:0 22px 22px 22px;
    border-top:1px solid #eef2f7;
    background:#fcfdff;
}

.job-accordion-item.active .job-accordion-content{
    display:block;
}

.job-accordion-desc{
    margin:16px 0 14px 0;
    color:#526272;
    line-height:1.75;
    font-size:14px;
}

.job-accordion-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:8px;
}

.apply-now-wrap{
    transition:all .25s ease;
}

.apply-now-wrap.is-hidden{
    display:none;
}

/* =========================
   APPLICATION SECTION
========================= */
.application-wrap.single-column{
    display:block;
    max-width:920px;
    margin:0 auto;
}

.application-top-strip{
    background:linear-gradient(135deg, #f7fbff, #eef5ff);
    border:1px solid #dce9f7;
    border-radius:18px;
    padding:18px 20px;
    margin-bottom:18px;
}

.application-top-strip h3{
    margin:0 0 6px;
    font-size:20px;
    color:#0a2f4d;
}

.application-top-strip p{
    margin:0;
    color:#5b6b7b;
    line-height:1.7;
    font-size:14px;
}

.application-form{
    background:#fff;
    border-radius:18px;
    border:1px solid #edf1f5;
    box-shadow:var(--career-shadow-soft);
    padding:18px;
}

.application-form.full-width{
    width:100%;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:12px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.form-group.full{
    grid-column:1 / -1;
}

.form-group label{
    font-size:13px;
    font-weight:700;
    color:#334155;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid #d7dee8;
    border-radius:10px;
    padding:11px 12px;
    font-size:13px;
    outline:none;
    background:#fff;
    transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#8cb4dd;
    box-shadow:0 0 0 3px rgba(30,95,163,.08);
    background:#fff;
}

.form-group textarea{
    min-height:120px;
    resize:vertical;
}

.form-note{
    margin-top:14px;
    font-size:12px;
    line-height:1.6;
    color:#667085;
}

.form-submit-wrap{
    margin-top:16px;
}

/* =========================
   SEND CV
========================= */
.send-cv{
    margin-top:30px;
}

.send-cv-card{
    background:linear-gradient(135deg,#0a3d62,#1e5fa3);
    color:#fff;
    padding:30px 22px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 14px 30px rgba(10,61,98,.16);
}

.send-cv-card h3{
    margin:0 0 8px;
    font-size:24px;
    line-height:1.3;
}

.send-cv-card p{
    margin:0;
    font-size:14px;
    line-height:1.7;
    color:rgba(255,255,255,.92);
}

.send-cv-email{
    margin-top:14px;
    font-size:18px;
    font-weight:700;
    background:#fff;
    color:#0a3d62;
    display:inline-block;
    padding:10px 20px;
    border-radius:999px;
    text-decoration:none;
    box-shadow:0 10px 20px rgba(0,0,0,.12);
    word-break:break-word;
}

/* =========================
   ALERTS / UTILITIES
========================= */
.alert{
    border-radius:10px;
    padding:10px 12px;
    font-size:13px;
    margin-bottom:12px;
}

.alert-success{
    background:#ecfdf3;
    color:#166534;
    border:1px solid #bbf7d0;
}

.alert-error{
    background:#fef2f2;
    color:#b91c1c;
    border:1px solid #fecaca;
}

.login-strip{
    padding:10px 12px;
    border-radius:10px;
    background:#fff7ed;
    font-size:13px;
    color:#9a3412;
    border:1px solid #fed7aa;
}

.login-strip a{
    color:#9a3412;
    font-weight:700;
    text-decoration:none;
}

.login-strip-spaced{
    margin:0 0 18px 0;
}

.text-center{
    text-align:center;
}

.job-title-link{
    color:#0a2f4d;
    text-decoration:none;
    transition:color .18s ease;
    cursor:pointer;
}

.job-title-link:hover{
    color:#1e5fa3;
    text-decoration:underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:1100px){
    .culture-grid,
    .benefits-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .careers-hero{
        height:360px;
        min-height:360px;
        max-height:360px;
        margin-top:74px !important;
    }

    .careers-hero-logo{
        width:138px;
    }
}

@media (max-width:991px){
    .form-grid{
        grid-template-columns:1fr;
    }

    .careers-hero{
        height:300px;
        min-height:300px;
        max-height:300px;
        margin-top:72px !important;
    }

    .careers-hero-logo{
        width:130px;
    }
}

@media (max-width:767px){
    .careers-container{
        width:min(100% - 20px, 1180px);
    }

    .careers-section-header h2{
        font-size:24px;
    }

    .culture-grid,
    .benefits-grid{
        grid-template-columns:1fr;
    }

    .application-top-strip{
        padding:16px;
    }

    .careers-btn{
        width:100%;
    }

    .send-cv-card{
        padding:22px 16px;
    }

    .send-cv-card h3{
        font-size:20px;
    }

    .send-cv-email{
        font-size:15px;
        padding:9px 14px;
    }

    .job-accordion-header{
        padding:16px;
        align-items:flex-start;
    }

    .job-accordion-content{
        padding:0 16px 16px 16px;
    }

    .job-accordion-title{
        font-size:18px;
    }

    .job-accordion-arrow{
        width:38px;
        height:38px;
        min-width:38px;
        font-size:18px;
    }

    .job-accordion-meta{
        gap:8px;
    }

    .job-accordion-actions .careers-btn{
        width:100%;
    }

    .careers-hero{
        height:240px;
        min-height:240px;
        max-height:240px;
        margin-top:68px !important;
    }

    .careers-hero-content{
        padding:12px;
    }

    .careers-hero-top{
        gap:10px;
    }

    .careers-hero-logo{
        width:120px;
    }

    .careers-hiring-badge{
        padding:8px 12px;
        font-size:12px;
    }

    .hero-dots{
        bottom:12px;
        gap:7px;
    }

    .hero-dot{
        width:9px;
        height:9px;
    }

    .hero-dot.active{
        width:22px;
    }

    .hero-arrows{
        padding:0 10px;
    }

    .hero-arrow{
        width:38px;
        height:38px;
        font-size:18px;
    }
}

@media (max-width:480px){
    .application-form{
        padding:14px;
    }

    .benefit-card,
    .culture-card{
        border-radius:14px;
    }

    .careers-hero{
        height:200px;
        min-height:200px;
        max-height:200px;
        margin-top:64px !important;
    }

    .careers-hero-logo{
        width:100px;
    }

    .careers-hiring-badge{
        font-size:11px;
        padding:7px 10px;
    }

    .careers-hiring-badge::before{
        margin-right:6px;
        font-size:12px;
    }

    .hero-dot{
        width:8px;
        height:8px;
    }

    .hero-dot.active{
        width:18px;
    }

    .hero-arrow{
        width:34px;
        height:34px;
        font-size:16px;
    }
}