/* ============================================================
   Demo2 local styles (BASE)
   ============================================================ */
.page-cover {
    background: linear-gradient(90deg,#f7fbff,#ffffff);
    border-radius:12px;
    padding:18px;
    box-shadow:0 8px 20px rgba(15,40,90,0.04);
    display:flex;
    gap:16px;
    align-items:center;
}
.cover-img {
    flex:0 0 180px;
    height:100px;
    border-radius:10px;
    object-fit:cover;
}
/* Force white link ONLY on cover image overlay */
.cover-white-link a { color: #ffffff !important; text-decoration: none; font-weight: 600; }
.cover-white-link a:hover { color: #e0e0e0 !important; text-decoration: underline; }
.logo-small {
    width:64px;
    height:64px;
    border-radius:12px;
    object-fit:cover;
    border:1px solid #eef3ff;
    background:#fff;
}
h1.job-title {
    font-size:1.6rem;
    margin:0;
    font-weight:600;
}
.company-row { color:#475569; margin-top:6px; }
.two-col {
    display:grid;
    grid-template-columns: 1fr 320px;
    gap:20px;
    align-items:start;
}
.job-hero {
    background:#fff;
    border-radius:12px;
    padding:18px;
    box-shadow:0 8px 22px rgba(10,40,100,0.03);
}
.card-muted { color:#6b7280; font-size:0.95rem; }

.pill {
    display:inline-block;
    padding:6px 10px;
    background:#f3f6fb;
    border-radius:999px;
    margin:6px 6px 0 0;
    font-size:.9rem;
    color:#334155;
}
.rich-text-content ul { list-style-type: disc; padding-left: 20px; margin-bottom: 10px; }
.rich-text-content ol { list-style-type: decimal; padding-left: 20px; margin-bottom: 10px; }
.rich-text-content p { margin-bottom: 10px; }

.tag-pill {
    padding:6px 12px;
    background:#eef3ff;
    border-radius:20px;
    display:inline-block;
    margin:4px;
    font-size:.85rem;
}

.apply-btn { width:100%; display:block; font-weight:600; }
.btn-apply { background:#0b5cff!important; color:#fff!important; border:0; }
.btn-call  { background:#06b6d4!important; color:#fff!important; border:0; }
.btn-email { background:#f59e0b!important; color:#fff!important; border:0; }
.btn-wa    { background:#10b981!important; color:#fff!important; border:0; }

.sticky-right { position:sticky; top:18px; }

/* Mobile */
@media (max-width:991px){
    .two-col { grid-template-columns: 1fr; }
    .sticky-right { position: static; }
    .cover-img { width:120px; height:80px; }
}

/* Desktop */
@media (min-width:992px){
    .job-inline { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
}

/* ============================================================
   Read More / Read Less (BOTH Job + Company)
   ============================================================ */
.desc-box {
    max-height:160px;
    overflow:hidden;
    position:relative;
    transition:.35s;
}
.desc-box.expanded { max-height:none; }

.desc-fade {
    position:absolute;
    bottom:0; left:0; right:0;
    height:50px;
    background:linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 90%);
    pointer-events:none;
}

/* BUTTON — unified for job + company */
.toggle-desc,
#toggleCompanyDesc.toggle-desc {
    background:none;
    border:0;
    color:#0b5cff;
    font-weight:600;
    display:inline-block;
    clear:both;
    margin-top:12px;
    margin-bottom:22px;
    cursor:pointer;
}

/* ============================================================
   FIX 1 — COMPANY Read More alignment
   ============================================================ */
#toggleCompanyDesc {
    margin-left:0;
    display:inline-block;
    position:relative;
    z-index:2;
}

/* ============================================================
   FIX 2 — AVATAR / LOGO Fallback Alignment (Header + Compact)
   ============================================================ */
.cover-avatar {
    width:80px;
    height:80px;
    flex:0 0 80px;
    border-radius:50%;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
}

.card-body .cover-avatar {
    width:64px;
    height:64px;
    flex:0 0 64px;
}

/* force avatar decorator + image to fill circular container */
.cover-avatar .ow_avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;

    border-radius: 50% !important;    /* force circle */
    display: block !important;
}

/* Also override the inner container used by Oxwall */
.cover-avatar .ow_avatar {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* mobile avatar size */
@media (max-width:575px){
    .cover-avatar { width:56px; height:56px; flex:0 0 56px; }
    .card-body .cover-avatar { width:48px; height:48px; flex:0 0 48px; }
}

/* ============================================================
   FIX 3 — Cover Image stability
   ============================================================ */
.job-cover-image {
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:8px;
    display:block;
}

/* fallback gradient (kept) */
.job-cover-fallback {
    height:250px;
    background-image:linear-gradient(180deg, rgba(13,110,253,0.06), rgba(13,110,253,0.02));
}

/* Misc tokens you already depend on */
.small-muted { color:#374151; }
.divider { height:1px; background:#eef2ff; margin:12px 0; border-radius:2px; }

/* ============================================================
   CTA Buttons — Hover Enhancements
   ============================================================ */

/* Apply subtle darkening + lift */
.btn-apply:hover,
.btn-call:hover,
.btn-email:hover,
.btn-wa:hover {
    filter: brightness(0.92);
    transform: translateY(-2px);
    transition: all 0.18s ease-in-out;
    color:#fff!important;
    text-decoration:none!important;
}

/* Keep anchor tags inside buttons clean */
.btn-apply a,
.btn-call a,
.btn-email a,
.btn-wa a {
    color:#fff!important;
    text-decoration:none!important;
}

.btn-apply:hover a,
.btn-call:hover a,
.btn-email:hover a,
.btn-wa:hover a {
    color:#fff!important;
    text-decoration:none!important;
}
/* --- MOBILE UX OVERRIDES --- */
@media (max-width: 991px) {
    /* 1. Hero Compression */
    .job-cover-image, .job-cover-fallback {
        height: 150px !important;
    }
    
    .page-container {
        padding-bottom: 80px; /* Space for sticky bar */
    }

    /* 2. Re-stacking AI Card */
    /* If it's an AI job, we push the scanner card to the top on mobile */
    .ai-scanner-card {
        margin-top: -20px;
        position: relative;
        z-index: 5;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

    /* 3. Sticky Action Bar Styling */
    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050; /* Above Oxwall console */
        animation: slideUp 0.4s cubic-bezier(0, 0, 0.2, 1);
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* 4. Section Spacing */
    .job-hero {
        padding: 15px !important;
        margin-top: 10px;
    }

    /* 5. Pill wrapping */
    .pill {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* --- AI SCANNER UI POLISHING --- */
.ai-scanner-card .scanner-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%) !important;
    border-bottom: 3px solid #fbbf24;
}

.ai-pulse-dot {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 1);
    transform: scale(1);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Container: Appear on Load */
.mobile-sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
    background: #ffffff; transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15) !important;
}
.mobile-sticky-cta.is-hidden { transform: translateY(100%); }

/* Header Polishing */
.sticky-header { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.std-header-content { 
    color: #3b82f6; font-size: 10px; font-weight: 800; 
    letter-spacing: 1.2px; text-align: center; text-transform: uppercase;
}
.dot-sep { color: #cbd5e1; margin: 0 5px; }

/* AI Mode Specifics */
.mode-ai { background: #0f172a !important; }
.mode-ai .sticky-header { background: #1e293b; border-bottom: 1px solid #334155; border-radius: 20px 20px 0 0; }
.ai-header-content { color: #fbbf24; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-align: center; }
.ai-btn-gradient {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
}

/* Ensure Icons inside the AI button are White */
.ai-btn-gradient i {
    color: #ffffff !important;
}

/* Specific Gold color for the Bolt icon to make it pop */
.ai-bolt-icon {
    color: #fbbf24 !important; /* Gold/Yellow */
    filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4));
}

/* Hover state for premium feel */
.ai-btn-gradient:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Balanced Button Sizing */
.sticky-icon-btn { 
    width: 60px !important; height: 52px; flex-shrink: 0; 
    border-radius: 14px; font-size: 18px; 
    display: flex; align-items: center; justify-content: center; 
}
.sticky-main-btn { 
    height: 52px; border-radius: 14px; font-size: 14px;
    display: flex; align-items: center; justify-content: center; 
}