/* ===== Featured Companies Strip ===== */
.fc-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #f4f6f8;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px 24px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
}

/* Direction awareness: respect page direction in RTL and LTR */
html[dir="rtl"] .fc-strip, [dir="rtl"] .fc-strip { direction: rtl; }
html[dir="ltr"] .fc-strip, [dir="ltr"] .fc-strip { direction: ltr; }

.fc-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3F919C;
    vertical-align: middle;
    margin-inline-start: 4px;
}
.fc-verified-badge svg { width: 22px; height: 22px; }

.fc-avatar-group {
    display: flex;
    align-items: center;
}

.fc-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background-color: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, z-index 0s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    box-sizing: border-box;
}

/* Bi-directional avatar overlap */
[dir="rtl"] .fc-avatar:not(:first-child) {
    margin-right: -20px;
    margin-left: 0;
}
[dir="ltr"] .fc-avatar:not(:first-child) {
    margin-left: -20px;
    margin-right: 0;
}

.fc-avatar:nth-child(1) { z-index: 10; }
.fc-avatar:nth-child(2) { z-index: 9; }
.fc-avatar:nth-child(3) { z-index: 8; }
.fc-avatar:nth-child(4) { z-index: 7; }
.fc-avatar:nth-child(5) { z-index: 6; }
.fc-avatar:nth-child(6) { z-index: 5; }
.fc-avatar:nth-child(7) { z-index: 4; }
.fc-avatar:nth-child(8) { z-index: 3; }
.fc-avatar:nth-child(9) { z-index: 2; }
.fc-avatar:nth-child(10) { z-index: 1; }

.fc-avatar-group .fc-avatar:nth-child(n+11):not(.fc-more):not(.fc-remaining) { display: none; }
.fc-avatar:hover { transform: translateY(-4px); z-index: 20 !important; }
.fc-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; overflow: hidden; }
.fc-avatar .fc-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fc-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a202c;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 50;
}
.fc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1a202c transparent transparent transparent;
}
.fc-tooltip .fc-tt-name { font-size: 13px; font-weight: 700; margin: 0; color: #fff; }
.fc-tooltip .fc-tt-sector { font-size: 11px; color: #a0aec0; margin: 0; font-weight: 500; }
.fc-avatar:hover .fc-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Base fc-more style (shared by action circles) */
.fc-more { background-color: #98ce44; color: #ffffff; font-size: 18px; font-weight: 700; }
.fc-more:hover { background-color: #7fb835; color: #ffffff; }

/* Circle 1: Green add circle */
.fc-add { background-color: #4CAF50; color: #ffffff; border: 3px solid #fff; }
.fc-add:hover { background-color: #43A047; }

/* Circle 2: Orange count circle */
.fc-count { background-color: #fe8a3f; color: #ffffff; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 800; border: 3px solid #fff; z-index: 2; }
.fc-count:hover { background-color: #e97a2f; }

/* Glass separator circles */
.fc-glass {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.7);
    pointer-events: none;
}
[dir="rtl"] .fc-glass { margin-right: -4px; margin-left: 0; }
[dir="rtl"] .fc-glass + .fc-glass { margin-right: -12px; margin-left: 0; }
[dir="ltr"] .fc-glass { margin-left: -4px; margin-right: 0; }
[dir="ltr"] .fc-glass + .fc-glass { margin-left: -12px; margin-right: 0; }

.fc-all { background-color: #F48C27; color: #ffffff; font-size: 16px; font-weight: 700; }
.fc-all:hover { background-color: #d97a1e; color: #ffffff; }
.fc-remaining { background-color: #ec771c; color: #ffffff; font-size: 15px; font-weight: 800; letter-spacing: -0.5px; }
.fc-remaining:hover { background-color: #d46815; color: #ffffff; }

.fc-info {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}
[dir="rtl"] .fc-info { margin-left: 32px; margin-right: 0; }
[dir="ltr"] .fc-info { margin-right: 32px; margin-left: 0; }
.fc-info:hover { text-decoration: none; }
.fc-info .fc-logo { width: 56px; height: 56px; object-fit: contain; }
.fc-info .fc-text { display: flex; flex-direction: column; gap: 4px; }
.fc-info .fc-title { color: #1a202c; font-weight: 800; font-size: 18px; margin: 0; line-height: 1.2; display: flex; flex-direction: row; align-items: center; gap: 6px; }
.fc-info .fc-sub { color: #3F919C; font-size: 13px; font-weight: 600; margin: 0; line-height: 1.3; }

/* ── Mobile Layout Optimization (<= 768px) ── */
@media (max-width: 768px) {
    .fc-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 14px;
        border-radius: 16px;
        margin: 16px 0;
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .fc-info {
        margin: 0 !important;
        width: 100%;
        gap: 12px;
        align-items: center;
    }
    .fc-info .fc-logo {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    .fc-info .fc-title {
        font-size: 16px;
        font-weight: 700;
    }
    .fc-info .fc-sub {
        font-size: 12px;
    }
    .fc-avatar-group {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        padding: 8px 6px 12px 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .fc-avatar-group::-webkit-scrollbar {
        display: none;
    }
    .fc-avatar {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        flex-shrink: 0;
        border: 2.5px solid #ffffff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border-radius: 50%;
    }
    [dir="rtl"] .fc-avatar:not(:first-child) {
        margin-right: -12px !important;
        margin-left: 0 !important;
    }
    [dir="ltr"] .fc-avatar:not(:first-child) {
        margin-left: -12px !important;
        margin-right: 0 !important;
    }
    .fc-avatar.fc-glass {
        display: none !important;
    }
    .fc-more {
        font-size: 14px;
    }
    .fc-count {
        font-size: 13px;
    }
    .fc-add {
        font-size: 18px;
    }
}

/* Browse All Featured Companies CTA */
.fc-browse-all {
    width: 100%;
    text-align: center;
    padding: 8px 0 0;
    margin-top: 4px;
}
.fc-browse-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2e8795;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.fc-browse-link:hover {
    color: #1a6570;
    text-decoration: underline;
}
.fc-browse-link i {
    font-size: 0.72rem;
}
[dir="ltr"] .fc-browse-link i {
    transform: scaleX(-1);
}

/* Secondary gray city text in location */
.fc-location-city { color: #6b7280; font-weight: 400; }

