/**
 * Top employers — compact name chips (matches featured job cards).
 * Unique filename busts Hostinger CDN “remove query strings” cache.
 */
.modern-home .modern-employers,
.modern-home .modern-employers--chips {
    margin: 0 0 1.1rem !important;
}

.modern-home .modern-employers .modern-section-heading {
    margin-bottom: 0.7rem !important;
}

.modern-home .modern-employers__scroller,
.modern-home .modern-employers__panel {
    display: contents !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modern-home .modern-employers__panel::before,
.modern-home .modern-employers__track::before {
    content: none !important;
    display: none !important;
}

.modern-home .modern-employers__track {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.modern-home .modern-employers__item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Hide legacy circle cards if any stale markup remains */
.modern-home .modern-employer-card {
    display: none !important;
}

.modern-home .modern-employer-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0.45rem 0.8rem 0.45rem 0.45rem !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 18px -16px rgba(15, 23, 42, 0.28) !important;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease !important;
}

.modern-home .modern-employer-chip:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12), 0 10px 22px -16px rgba(15, 23, 42, 0.3) !important;
    transform: translateY(-1px);
    color: #0f172a !important;
}

.modern-home .modern-employer-chip__logo {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    display: block !important;
    position: relative !important;
}

.modern-home .modern-employer-chip__logo .jobcv-avatar,
.modern-home .modern-employer-chip__logo .modern-employer-chip__avatar,
.modern-home .modern-employer-chip__logo img,
.modern-home .modern-employer-chip__logo > * {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: transparent !important;
    box-shadow: none !important;
}

.modern-home .modern-employer-chip__logo .jobcv-avatar:not(:has(img)),
.modern-home .modern-employer-chip__logo .modern-employer-chip__avatar:not(:has(img)) {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
}

.modern-home .modern-employer-chip__name {
    min-width: 0 !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 11.5rem !important;
}

@media (max-width: 720px) {
    .modern-home .modern-employers__track {
        gap: 0.45rem !important;
    }
    .modern-home .modern-employer-chip {
        padding: 0.4rem 0.7rem 0.4rem 0.4rem !important;
        border-radius: 12px !important;
        flex: 1 1 calc(50% - 0.45rem) !important;
        max-width: calc(50% - 0.23rem) !important;
    }
    .modern-home .modern-employer-chip__name {
        max-width: none !important;
        font-size: 0.78rem !important;
    }
}

html[data-color-scheme="dark"] .modern-home .modern-employer-chip {
    background: #151e32 !important;
    border-color: rgba(167, 139, 250, 0.16) !important;
    box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.55) !important;
    color: #e2e8f0 !important;
}

html[data-color-scheme="dark"] .modern-home .modern-employer-chip:hover {
    border-color: rgba(167, 139, 250, 0.35) !important;
}

html[data-color-scheme="dark"] .modern-home .modern-employer-chip__logo {
    background: #0f1629 !important;
    border-color: rgba(167, 139, 250, 0.2) !important;
}

html[data-color-scheme="dark"] .modern-home .modern-employer-chip__name {
    color: #e2e8f0 !important;
}
