section { padding: 2.5rem 0; position: relative; }

/* HERO */
.bg-hero {
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    color: #fff;
    padding: 2.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.bg-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: linear-gradient(135deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
}
.bg-hero .container { position: relative; z-index: 2; }

.job-breadcrumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: rgba(255,255,255,.6);
    margin-bottom: 1rem; flex-wrap: wrap;
}
.job-breadcrumb a { color: #a5b4fc; text-decoration: none; }
.job-breadcrumb a:hover { color: #fff; }
.job-breadcrumb .sep { opacity: .5; }
.job-breadcrumb .active { color: rgba(255,255,255,.75); }

.job-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}
.job-hero-head .left { flex: 1; min-width: 0; }
.job-hero-head .dept-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .85rem;
}
.job-hero-head h1 {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: .5rem;
    color: #fff;
}
.job-hero-head .sub {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 620px;
}
.job-hero-head .pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}
.job-hero-head .pills span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .85rem;
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    font-size: .78rem;
    font-weight: 600;
}
.job-hero-head .pills i { color: #a5b4fc; }
.job-hero-head .apply-btn {
    padding: .9rem 2rem;
    border-radius: 50px;
    background: #fff;
    color: var(--grad-start);
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    transition: .25s;
    border: 0;
    cursor: pointer;
}
.job-hero-head .apply-btn:hover {
    color: var(--grad-start);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.job-hero-head .apply-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}

/* BODY */
.bg-body {
    background-color: #f8fafc;
    background-image:
        linear-gradient(rgba(99,102,241,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.045) 1px, transparent 1px);
    background-size: 44px 44px;
    margin-top: -3rem;
    padding-top: 5rem !important;
    position: relative;
    z-index: 3;
}

/* Content panels */
.panel-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 16px rgba(15,23,42,.05);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.panel-head {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.panel-head .ic {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.panel-head h5 {
    font-weight: 800;
    color: #0f172a;
    font-size: 1.05rem;
    margin: 0;
}
.panel-body {
    padding: 1.5rem;
    color: #334155;
    font-size: .95rem;
    line-height: 1.75;
}
.panel-body h1, .panel-body h2, .panel-body h3 { color: #0f172a; font-weight: 800; margin: 1.5rem 0 .85rem; }
.panel-body h2 { font-size: 1.25rem; }
.panel-body h3 { font-size: 1.1rem; }
.panel-body p { margin-bottom: 1rem; }
.panel-body ul, .panel-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.panel-body li { margin-bottom: .5rem; }
.panel-body strong { color: #0f172a; font-weight: 700; }

/* Sidebar */
.sidebar-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 16px rgba(15,23,42,.05);
    padding: 1.35rem;
    margin-bottom: 1rem;
    position: sticky;
    top: calc(var(--header-h) + var(--subnav-h) + 1rem);
}
.sidebar-card:not(:first-child) { position: static; }
.sidebar-card h6 {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.sidebar-card h6 i { color: var(--primary); }
.sidebar-card .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid #f8fafc;
    font-size: .88rem;
}
.sidebar-card .info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-card .info-row .lbl { color: #94a3b8; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.sidebar-card .info-row .val { color: #0f172a; font-weight: 700; text-align: right; }
.sidebar-card .apply-btn-lg {
    display: block;
    width: 100%;
    padding: .85rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(99,102,241,.28);
    transition: .25s;
    border: 0;
    cursor: pointer;
}
.sidebar-card .apply-btn-lg:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(99,102,241,.45);
}

/* Application form */
.form-label-modern {
    font-size: .78rem;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
    display: block;
}
.form-control-modern {
    width: 100%;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    padding: .7rem .95rem;
    font-size: .92rem;
    background: #f8fafc;
    outline: none;
    transition: .2s;
    font-family: inherit;
}
.form-control-modern:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}
.form-hint {
    font-size: .75rem;
    color: #94a3b8;
    margin-top: .3rem;
    display: block;
}

.alert-modern {
    border-radius: 14px;
    border: 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .92rem;
}
.alert-modern.success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.alert-modern.error { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-modern.info { background: #eef2ff; color: #3730a3; border-left: 4px solid var(--primary); }
.alert-modern i { font-size: 1.15rem; flex-shrink: 0; margin-top: .1rem; }

.apply-submit {
    padding: .9rem 2rem;
    border-radius: 50px;
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 10px 26px rgba(99,102,241,.28);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.apply-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(99,102,241,.45);
}

/* Responsive */
@media (max-width: 992px) {
    .job-hero-head h1 { font-size: 1.8rem; }
    .sidebar-card { position: static; }
}
@media (max-width: 576px) {
    .job-hero-head h1 { font-size: 1.5rem; }
    .panel-body { padding: 1.15rem; }
}