/* ========================================================
   Jobs Portal — Custom overrides
   Header: cleaner, white-on-scroll, larger logo
   ======================================================== */

/* ── Logo ────────────────────────────────────────────── */
.main-header .logo img {
    max-height: 56px;  /* was ~40px default — increase to taste */
    width: auto;
}

/* Keep logo from collapsing on the split hero */
.main-header .logo {
    padding: 18px 0;
    margin-right: 60px;
}

/* ── Transparent header (over hero, homepage only) ─────── */
/* Already handled by header_transparent body class — just
   ensure the box has no background when floating above hero */
.header_transparent .main-header:not(.fixed-header) {
    background: transparent;
}

/* ── Sticky / scrolled header ───────────────────────────
   When the user scrolls, fixed-header kicks in.
   Give it a clean white bar with a crisp shadow.          */
.main-header.fixed-header {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 0;
}

/* Nav links turn dark on white sticky bar */
.main-header.fixed-header .main-menu .navigation > li > a,
.main-header.fixed-header .main-menu .navigation > li > span {
    color: #202124 !important;
}
.main-header.fixed-header .main-menu .navigation > li.current > a,
.main-header.fixed-header .main-menu .navigation > li.current > span,
.main-header.fixed-header .main-menu .navigation > li > a:hover,
.main-header.fixed-header .main-menu .navigation > li > span:hover {
    color: var(--main-color, #1967d2) !important;
}

/* ── header-style-two: slightly larger inner padding ─────
   Gives the header more breathing room on desktop.        */
.header-style-two .main-box {
    padding: 0 40px;
}

/* ── Nav links: tighten spacing slightly ────────────────── */
.header-style-two .main-menu .navigation > li {
    margin-left: 32px;
}

/* ── Register / CTA button ──────────────────────────────── */
.main-header .outer-box .btn-box a.theme-btn {
    font-size: 14px;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── "Sign in" link ─────────────────────────────────────── */
.header-style-two .btn-style-five {
    color: #ffffff;
    font-weight: 500;
}
.main-header.fixed-header .btn-style-five {
    color: #202124 !important;
}
.main-header.fixed-header .btn-style-five:hover {
    color: var(--main-color, #1967d2) !important;
}

/* ── Reduce header height on mobile ─────────────────────── */
@media (max-width: 767px) {
    .main-header .logo img {
        max-height: 40px;
    }
    .main-header .logo {
        padding: 12px 0;
    }
}

/* =========================================================
   Hero Banner Style 4 — Split Blue / Yellow
   ========================================================= */

/* --- Outer wrapper --- */
.s4-hero-wrap {
    position: relative;
    overflow: visible;
}

/* --- Two-panel flex container --- */
.s4-panels {
    display: flex;
    min-height: 560px;
}

/* --- Base panel --- */
.s4-panel {
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 70px 55px 110px 55px;
}

/* --- Panel colors --- */
.s4-panel-blue   { background-color: #1B6EC5; }
.s4-panel-yellow { background-color: #F5C200; }

/* --- Decorative background oval --- */
.s4-panel-circle {
    position: absolute;
    width: 440px;
    height: 520px;
    border-radius: 50%;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.s4-panel-blue   .s4-panel-circle { background-color: rgba(255,255,255,0.07); }
.s4-panel-yellow .s4-panel-circle { background-color: rgba(255,255,255,0.22); }

/* --- Text content block --- */
.s4-panel-content {
    position: relative;
    z-index: 2;
    max-width: 52%;
}

/* --- Label tag (JOBSEEKER / COMPANIES) --- */
.s4-label-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 22px;
}
.s4-label-dark {
    color: #2c2c2c;
}

/* --- Main heading --- */
.s4-heading {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 14px;
}
.s4-heading-dark { color: #1a1a2e; }

/* --- Sub text --- */
.s4-subtext {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    margin: 0 0 28px;
}
.s4-subtext-dark { color: rgba(0,0,0,0.60); }

/* --- CTA buttons --- */
.s4-cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    cursor: pointer;
}
.s4-cta-yellow {
    background-color: #F5C200;
    color: #1a1a2e !important;
}
.s4-cta-yellow:hover {
    background-color: #e6b400;
    color: #1a1a2e !important;
}
.s4-cta-dark {
    background-color: #2f3248;
    color: #ffffff !important;
}
.s4-cta-dark:hover {
    background-color: #1a1a2e;
    color: #ffffff !important;
}

/* --- Person image --- */
.s4-panel-img {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 52%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.s4-panel-img img {
    display: block;
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    object-position: bottom center;
}

/* ── Stats Bar ─────────────────────────────────────────── */
.s4-stats-outer {
    display: flex;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 10;
}
.s4-stats-bar {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
    padding: 18px 10px;
    position: relative;
    bottom: 32px;
    margin: 0 auto;
}
.s4-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
}
.s4-stat-sep {
    width: 1px;
    height: 40px;
    background: #e8e8e8;
    flex-shrink: 0;
}
.s4-stat-icon {
    font-size: 28px;
    color: #1B6EC5;
    line-height: 1;
}
.s4-stat-icon i { font-size: 22px; color: #1B6EC5; }
.s4-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.s4-stat-info strong {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}
.s4-stat-info span {
    font-size: 13px;
    color: #888888;
    line-height: 1;
}

/* ── Search Section ────────────────────────────────────── */
.s4-search-section {
    background-color: #f0f5fc;
    padding: 10px 0 45px;
}
.s4-search-heading {
    font-size: 21px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 18px;
}
.s4-search-form {
    width: 100%;
}
.s4-search-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 10px 8px 20px;
    gap: 0;
}
.s4-search-field {
    flex: 1;
    min-width: 0;
}
.s4-field-kw input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333333;
    background: transparent;
    padding: 10px 0;
}
.s4-field-kw input::placeholder { color: #aaaaaa; }

.s4-field-cat {
    border-left: 1px solid #e0e0e0;
    padding-left: 16px;
}
.s4-field-cat select,
.s4-field-cat .select2-container {
    width: 100% !important;
}
.s4-field-cat .select2-container--default .select2-selection--single {
    border: none;
    background: transparent;
    height: 42px;
    line-height: 42px;
    outline: none;
}
.s4-field-cat .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #555;
    padding-left: 0;
    line-height: 42px;
}
.s4-field-cat .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.s4-field-btn {
    flex: 0 0 auto;
    margin-left: 8px;
}
.s4-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #F5C200;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: #1a1a2e;
    transition: background 0.2s;
    outline: none;
}
.s4-search-btn:hover { background: #e6b400; }

/* Popular Searches */
.s4-popular-searches {
    margin-top: 14px;
    font-size: 14px;
    color: #666666;
}
.s4-popular-searches .title {
    font-weight: 600;
    margin-right: 6px;
}
.s4-popular-searches a {
    color: #1B6EC5;
    text-decoration: none;
}
.s4-popular-searches a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1199px) {
    .s4-panel { padding: 60px 40px 100px; }
    .s4-heading { font-size: 32px; }
    .s4-panel-content { max-width: 55%; }
}

@media (max-width: 991px) {
    .s4-panels { flex-direction: column; min-height: auto; }
    .s4-panel { flex: 0 0 100%; max-width: 100%; min-height: 380px; padding: 50px 30px 100px; }
    .s4-panel-content { max-width: 60%; }
    .s4-heading { font-size: 28px; }
    .s4-stats-bar { padding: 15px 5px; }
    .s4-stat-item { padding: 0 18px; }
}

@media (max-width: 767px) {
    .s4-panel { padding: 40px 25px 90px; min-height: 360px; }
    .s4-panel-content { max-width: 70%; }
    .s4-heading { font-size: 26px; }
    .s4-stats-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 16px 20px;
        width: 90%;
        bottom: 20px;
    }
    .s4-stat-item { padding: 0 14px; }
    .s4-stat-sep { display: none; }
    .s4-search-row { flex-wrap: wrap; padding: 12px 15px; gap: 8px; }
    .s4-search-field { flex: 0 0 100%; }
    .s4-field-cat { border-left: none; border-top: 1px solid #e0e0e0; padding-left: 0; padding-top: 10px; }
    .s4-field-btn { flex: 0 0 100%; }
    .s4-search-btn { width: 100%; border-radius: 6px; }
}

@media (max-width: 480px) {
    .s4-panel-content { max-width: 100%; }
    .s4-panel-img { width: 100%; position: static; opacity: 0.25; display: none; }
}

/* =========================================================
   Job Premium Badges  (listings + map infobox)
   ========================================================= */

/* Shared base for all inline badges */
.badge-hot,
.badge-urgent,
.badge-ad {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 4px;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.badge-hot    { background: #fff3e0; color: #e65c00; border: 1px solid #e65c00; }
.badge-urgent { background: #fde8e8; color: #c0392b; border: 1px solid #c0392b; }
.badge-ad     { background: #fff8e1; color: #9c6e00; border: 1px solid #f9a825; }

/* job-item-1 and similar loop items */
.job-other-info .tag-hot    { background: #fff3e0; color: #e65c00; }
.job-other-info .tag-urgent { background: #fde8e8; color: #c0392b; }
.job-other-info .tag-ad     { background: #fff8e1; color: #9c6e00; }

/* =========================================================
   Map Marker Variants
   ========================================================= */

/* Badge label floating above the marker card */
.marker-container { position: relative; }

.marker-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    line-height: 1;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Ring colour on the marker card border */
.marker-hot    .marker-card { border: 2px solid #e65c00 !important; box-shadow: 0 0 0 3px rgba(230,92,0,0.20); }
.marker-urgent .marker-card { border: 2px solid #c0392b !important; box-shadow: 0 0 0 3px rgba(192,57,43,0.20); }
.marker-advertised .marker-card { border: 2px solid #f9a825 !important; box-shadow: 0 0 0 3px rgba(249,168,37,0.25); }

/* Map infobox badge strip */
.map-pin-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
