/* Franchise listing company cards — category, search, popular */

.fc-company-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceff1;
    box-shadow: 0 4px 18px rgba(15, 42, 41, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fc-company-card:hover {
    box-shadow: 0 10px 28px rgba(15, 42, 41, 0.1);
    transform: translateY(-2px);
}

.fc-company-card__media {
    position: relative;
    height: 210px;
    background: #e8eeed;
    overflow: hidden;
}

.fc-company-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 72% 68% at 50% 50%, rgba(8, 28, 27, 0.58) 0%, rgba(8, 28, 27, 0.22) 58%, rgba(8, 28, 27, 0.38) 100%),
        linear-gradient(180deg, rgba(15, 42, 41, 0.12) 0%, rgba(15, 42, 41, 0.42) 100%);
}

.fc-company-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.fc-company-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fc-company-card__media.is-no-cover {
    background: var(--fc-media-fallback-bg, #0a7a78);
}

.fc-company-card__media.is-no-cover::after {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

.fc-company-card__cover-fallback {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}

.fc-company-card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #9aa8a6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.fc-company-card__favorite:hover {
    color: #ea5455;
    transform: scale(1.06);
}

.fc-company-card__favorite.is-active {
    color: #ea5455;
}

.fc-company-card__favorite i {
    font-size: 15px;
    line-height: 1;
}

.fc-company-card__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    transform: translate(-50%, -50%);
}

.fc-company-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    border: 0;
    outline: none;
    box-shadow: none;
}

.fc-company-card__logo-fallback {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    color: #005d5b;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0 6px;
    text-align: center;
}

.fc-company-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    padding: 14px 16px 16px;
    text-align: left;
}

.fc-company-card__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.fc-company-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #0f2a29;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.fc-company-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.fc-company-card__title a:hover {
    color: #005d5b;
}

.fc-company-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.fc-company-card__categories {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #8aa09e;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fc-company-card__badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.fc-company-card__badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fc-company-card__badge i {
    font-size: 0.6rem;
    color: #fff;
    font-weight: 700;
}

.fc-company-card__badge.is-verified { background: #005d5b; }
.fc-company-card__badge.is-fair { background: #ea2126; }
.fc-company-card__badge.is-popular { background: #0751ff; }

.fc-company-card__budget {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f5f8f7;
    border: 1px solid #e9efed;
}

.fc-company-card__budget.is-empty {
    background: #f8fafa;
    border-style: dashed;
    border-color: #e2e9e7;
}

.fc-company-card__budget.is-empty .fc-company-card__budget-value,
.fc-company-card__budget.is-alt-brand .fc-company-card__budget-value {
    color: #8aa09e;
    font-weight: 500;
}

.fc-company-card__budget.is-alt-brand {
    background: #f8fafa;
    border-style: dashed;
    border-color: #e2e9e7;
}

.fc-company-card__budget-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8aa09e;
    line-height: 1.3;
}

.fc-company-card__budget-value {
    font-size: 0.84rem;
    font-weight: 600;
    color: #0f2a29;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.fc-company-card__apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 9px;
    border: 1px solid #d4e4e2;
    background: #fff;
    color: #005d5b;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fc-company-card__apply:hover,
.fc-company-card__apply:focus {
    background: #005d5b;
    color: #fff;
    border-color: #005d5b;
}

.fc-company-card__apply i {
    font-size: 0.72rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.fc-company-card__apply:hover i,
.fc-company-card__apply:focus i {
    transform: translateX(2px);
}

@media (max-width: 575.98px) {
    .fc-company-card__media {
        height: 180px;
    }

    .fc-company-card__logo {
        width: 120px;
        height: 120px;
    }
}

/* Company list pagination */
.pagination-area {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.fc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.fc-pagination__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fc-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #e2e8eb;
    background: #fff;
    color: #0f2a29;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fc-pagination__btn:hover:not(.is-active):not(.is-disabled) {
    border-color: #c9e2df;
    background: #f4f9f8;
    color: #005d5b;
}

.fc-pagination__btn.is-active {
    background: #005d5b;
    border-color: #005d5b;
    color: #fff;
    cursor: default;
}

.fc-pagination__btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.fc-pagination__btn i {
    font-size: 0.8rem;
}

.fc-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 40px;
    color: #8aa09e;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    user-select: none;
}

@media (max-width: 575.98px) {
    .fc-pagination__controls {
        gap: 6px;
    }

    .fc-pagination__btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
}
